问题
填空题
#include<stdio.h> int fun(char*s) {char*p=s; while(*p!=’\0’)p++; return(p-s);} main() {printf("%d\n",fun("hello world")); } 程序运行结果是:______
答案
参考答案:K
解析: 该程序是计算在主函数中输入字符串中字母的个数。
#include<stdio.h> int fun(char*s) {char*p=s; while(*p!=’\0’)p++; return(p-s);} main() {printf("%d\n",fun("hello world")); } 程序运行结果是:______
参考答案:K
解析: 该程序是计算在主函数中输入字符串中字母的个数。