Novice C language learning journey(3)

梦幻光晕蓝色背景矢量图.png
This is a two-dimensional array.The output result is different when i input "howee areee youuu" string and "how are you" string.Because the "a" array is out of bounds when i input "howee areee youuu".The code as follows:
#include"stdio.h"
int main(void){

char a[3][5];
scanf("%s%s%s",a[0],a[1],a[2]);
printf("%s\t%s\t%s\n",a[0],a[1],a[2]);
return 0;

}
捕获.PNG
捕获1.PNG

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center