例6.6 输出一个已知的字符串 #include<stdio.h> int main() { char c[15]={'I',' ','a','m',' ','a','s','t','d','e','n','t','.'}; int i; for(i=0;i<15;i++) printf("%c",c[i]); printf("\n"); return 0; } 运行结果如下: