关于C语言scanf的问题
#include <stdio.h>int main()
{
char str[4];
char ch[4];
char recive;
while((recive=getchar())!='\n')
{
scanf("%s",str);
scanf("%s",ch);
}
printf("str[0] is %c %d,str[3] is %c %d\n",str[0],str[0],str[3],str[3]);
}
输入abcd efgh 后怎么str[0]、str[3]是空字符