#include <stdio.h>
int main ()
{
char a[10], b[9], c[5];
scanf("%s", a);
scanf("%s", b);
scanf("%s", c);
printf("%s\n", b);
printf("%s %s %s", a, b, c);
return 0;
}
when input c[] array's number > 5, the rest osf the characters will be wrriten to b[] array, why?
for example:
input: program is wonderful
output: rful program rful wonderful