Line ____ in the following section of code checks for the end-of-string character.
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) 3
B) 5
C) 7
D) 10
Correct Answer:
Verified
Q35: The statement _ is a direct replacement
Q36: The _ function reads a set of
Q37: The _ function stops accepting characters only
Q38: The array char message[81]; can be used
Q39: Complete the following function:
/* copy string2 to
Q41: Line 5 in the function below can
Q42: The function _ appends str2 to the
Q43: _ does not produce the same result
Q44: If the contents of a string variable
Q45: Programs that use the isalpha() routine must
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents