Multiple Choice
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
Correct Answer:
Verified
Related Questions
Q25: Programs that use the isalpha() routine must
Q26: In C, a string is stored as
Q27: Typically, the _ function is used to
Q28: If the contents of a string variable
Q29: In C, the individual characters in a
Q31: A string literal is also referred to
Q32: The first 256 characters of the Unicode
Q33: Pressing the Enter key at the terminal
Q34: The function _ appends str2 to the
Q35: When using _, a full path name