c语言中%s是什么?

如题所述

第1个回答  2010-04-03
请参考:
-bash-3.00$./a.out
this a string to ary
-bash-3.00$cat ans.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int
main()
{
char *ary;
ary="this a string to ary";
printf("%s\n",ary);
exit(0);
}
-bash-3.00$
第2个回答  2010-04-03
输出字符串本回答被提问者采纳
相似回答