c语言初学问题求助
#include<stdio.h>int main()
{
char c[9],*p;
c[9]="computer";
for(p=c;*p!='\0';p=p+2)
printf("%c",*p);
printf("\0");
return 0;
}
这个程序的错误在哪?为什么运行结果乱码?
2016-12-10 20:11
[此贴子已经被作者于2016-12-11 11:35编辑过]
2016-12-11 07:55