字符串按%c输出。。
# include <stdio.h>int main(void)
{
char a[10]={"How you?"};
printf("%c\n", a);//这里输出的东西代表什么呢?
return 0;
}
---------------------------------
2015-03-25 23:14
程序代码:# include <stdio.h>
int main(void) {
char a[10] = {"How you?"};
char *p = a;
while(*p) printf("%c", *p++);
puts("");
return 0;
}

2015-03-25 23:31
2015-03-25 23:34
2015-03-26 00:27
2015-04-06 15:26