填空题
mystrlen函数的功能是计算str所指字符串的长度,并作为函数值返回。请填空。
int mystrlen(char * str)
int i;
for (i=0;
【7】
)!=’\0’;i+ +)
return
【8】
);
【参考答案】
[7]*(str+i) 或 str[i]
[8] i
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
以下函数把b字符串连接到a字符串的后面,并返回a中新字符串的长度。请填空。 strcen (char a[ ],char b[ ]) int num=0,n=0; while (*(a+num)!= 【16】 )num+ +; while(b[n]) * (a+num) =b[n]; num+ +; 【17】 ); return(num);
点击查看答案
填空题
[6](X>10&&x<100)|| x<0 或(10<x&&x<100) ||x<0或x<0 || (x>10&&x<100) 或0>x || (10<x&&x<100)或(括号有无都可以)
点击查看答案
相关试题
下面的程序用来统计文件中字符的个数。请填...
[19]struct link * next
[19]struct link * next
下面程序的输出结果是 【18】 。 # ...
理解下面的程序,填空完善程序。 main( ...