Card 45 / 67: To copy a string into another, given: char s1[30] = "xyz", s2[20];
A)
s2 = s1;
B)
strcpy(s2,s1);
C)
Both wrong
Answer:
B) strcpy(s2,s1);
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |