#include"stdio.h"
int main()
{
char x[55]="now is the time",*p=x;
printf("%c\n",*(p+4));
puts(x);
}
输出结果是字符 i
而不是我预期的空格。
难道在字符数组中,空格不占内存吗?
但是 如果在程序后加上 puts(x);
该语句会输出 now is the time
结果是有空格的。
求助啊,小弟太蠢........
#include"stdio.h"
int main()
{
char x[55]="now is the time",*p=x;
printf("%c\n",*(p+4));
puts(x);
}
输出结果是字符 i
而不是我预期的空格。
难道在字符数组中,空格不占内存吗?
但是 如果在程序后加上 puts(x);
该语句会输出 now is the time
结果是有空格的。
求助啊,小弟太蠢........