A-A+

#include<stdio.h>int fun(char*s){char*p=s;whil

2022-08-06 10:55:38 问答库 阅读 178 次

问题详情

#include<stdio.h>
int fun(char*s)
{char*p=s;
while(*p!="")p++;
return(p-s);}
main()
{printf("%dn",fun("hello world"));
}
程序运行结果是:______

参考答案

正确答案:
11 [解析] 该程序是计算在主函数中输入字符串中字母的个数。

考点: