Given the following piece of C code; int m = strlen (a); int n- strlen (b) ; int i; for (i = 0; i


Given the following piece of C code;<br>int m = strlen (a);<br>int n- strlen (b) ;<br>int i;<br>for (i = 0; i <= n; i++)<br>a (m+i] = bli]:<br>%3D<br>Assume two character arrays a and b both with 100 elements are declared and a is assigned name of a<br>person and b is assigned surname of a person.<br>Which of the statements is true after running this code ?<br>a) a contains name of the person<br>b) b contains name of the person<br>c) a is a concatenation of name and surname of the person<br>d) bis a concatenation of name and surname of the person<br>

Extracted text: Given the following piece of C code; int m = strlen (a); int n- strlen (b) ; int i; for (i = 0; i <= n;="" i++)="" a="" (m+i]="bli]:" %3d="" assume="" two="" character="" arrays="" a="" and="" b="" both="" with="" 100="" elements="" are="" declared="" and="" a="" is="" assigned="" name="" of="" a="" person="" and="" b="" is="" assigned="" surname="" of="" a="" person.="" which="" of="" the="" statements="" is="" true="" after="" running="" this="" code="" a)="" a="" contains="" name="" of="" the="" person="" b)="" b="" contains="" name="" of="" the="" person="" c)="" a="" is="" a="" concatenation="" of="" name="" and="" surname="" of="" the="" person="" d)="" bis="" a="" concatenation="" of="" name="" and="" surname="" of="" the="">

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here