请参考:-bash-3.00$./a.out this a string to ary-bash-3.00$cat ans.c #include #include #include intmain(){ char *ary; ary="this a string to ary"; printf("%s\n",ary); exit(0);}-bash-3.00$
输出字符串