C语言学习(7)
1 #include <stdio.h> 2 int main(){ 3 char s1[1]; 4 gets(s1); 5 puts(s1); 6 printf("%d\n",sizeof(s1)); 7 printf("%c\n",s1[1]); 8 return 0; 9 }
posted on 2018-06-27 18:39 孙悟空son_ku_kong 阅读(113) 评论(0) 编辑 收藏 举报
1 #include <stdio.h> 2 int main(){ 3 char s1[1]; 4 gets(s1); 5 puts(s1); 6 printf("%d\n",sizeof(s1)); 7 printf("%c\n",s1[1]); 8 return 0; 9 }
posted on 2018-06-27 18:39 孙悟空son_ku_kong 阅读(113) 评论(0) 编辑 收藏 举报