Line 5 in the function below can be replaced with ____. 1 void strcopy (char string1[], char string2[]) 2 { 3 int i = 0; 4 5 while (string2[i] != '\0') 6 { 7 string1[i] = string2[i]; 8 i++; 9 }10 string1[i] = '\0';11 }
A. while (string2[i])
B. while (!string2[i])
C. while (string2[i] < '\0')
D. while (string2[i] != '\n')
Answer: A
You might also like to view...
After applying a customized background, the number of slide layouts available for a new slide is ________
A) three B) one C) four D) two
Since a page can contain multiple web forms, JavaScript organizes the forms into _____ object collection. ?
A. document.idref[forms] B. idref.document[forms] C. document.forms[idref] D. forms.document[idref]
If the name of a file to open is in the string variable name fileName, which of the following will correctly open the file for output?
a. out_file.open(fileName); b. out_file.open("fileName"); c. fileName.open(outfile); d. out_file.open(fileName.c_str());
Define hop count.
What will be an ideal response?