Complete the following function:
/* copy string2 to string1 */
Void strcopy(char string1[], char string2[])
{
Int i = 0;
While (string2[i] != '\0')
{
String1[i] = string2[i];
I++;
}
____
}
A) return;
B) string1[i - 1] = '\0';
C) string1[i] = '\0';
D) string1[i + 1] = '\0';
Correct Answer:
Verified
Q34: Pressing the Enter key at the terminal
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
Q40: Line _ in the following section of
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
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