问题
填空题
以下程序的运行结果是 【10】 。
# include<string.h>
char *ss(char *s)
return s+strlen(s)/2;
main()
char *p,*str="abcdefgh";
p=ss(str);printf("%s\n",p);
答案
参考答案:efgh
解析: 函数ss返回形参s所指向的符号串的后半部分,故p="efgh"。