A-A+

#include<stdio.h>ss(char*s){char *p=s:while(*p

2022-08-06 10:52:23 问答库 阅读 178 次

问题详情

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

参考答案

正确答案:
5 [解析] 在被调函数中计算字符串的长度,在主函数中输出。

考点: