• 2022-06-01
    Which can replace lines 5 and 6 in the following function ? 1 /* copy string2 to string1 */ 2 void strcopy(char string1[], char string2[]) 3 { 4 int i = 0; 5 while (string1[i] = string2[i]) 6 i++; 7 }[/i][/i]
    A: while (*string1 = *string2) ;
    B: while (*string1 = string2) ;
    C: while (*string1++ = *string2++) ;
    D: while (*++string1 = *++string2) ;