Solved

Complete the Following Function

Question 30

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions