填空题
mysulen函数的功能是计算str所指字符山的长度,并作为函数值返回。请填空。
int mystrlen(Char *str)
int i;
fori=0; !=’\0’;i++);
return(______);
【参考答案】
*(srt+i)或str[i]
i
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
请在以下程序第一行的下划线处填写适当内容,使程序能正确运行。 ______(double,double); main() double x,y; scanf( %lf%lf ,&x.&y); printf( %lf n…,max(x,y)); double max(double a,double B) return(a>b a=B) ;
点击查看答案&解析
填空题
以下程序运行后的输出结果是______。 int a=5; fun (int B) static int a=10; a+=b++; printf( %d ,A) ; main() int c=20; fun(C) , a+=C++; printf( %d n ,A) ;
点击查看答案&解析
相关试题
有以下程序段: main) int a=5,*b...
程序中若有如下说明和定义语句 Char fun...
已有定义:.char a[]= xyz ,b[]...
有以下程序 main() int i=1, j=...
有以下程序 main() char s[]= ABC...