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')
Correct Answer:
Verified
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
Q40: Line _ in the following section of
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
Q46: Programs that use the atoi() 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