Card 46 / 67: to concatenate two strings into third string, given : char s1[30] = "hi", s2[20] = "world", s3[10];
A)
s3 = s1 + s2;
B)
strcpy(s3,s1); strcat(s3,s2);
C)
s3 = strcat(s1,s2);
Answer:
B) strcpy(s3,s1); strcat(s3,s2);
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |