填空题
理解下面的程序,填空完善程序。
main( )
int a,b,c;
scanf("%d%d",
【12】
);
c=
【13】
(a,b);
printf("a=%d b=%d max=%d\n",a,b,c);
int max(x,y)
【14】
;
int z;
if(x>y) z=x;
else z=y;
【15】
;
【参考答案】
[12]&a,&b
[13]max
[14] int x,y
[15] return(z)
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
mystrlen函数的功能是计算str所指字符串的长度,并作为函数值返回。请填空。 int mystrlen(char * str) int i; for (i=0; 【7】 )!=’ 0’;i+ +) return 【8】);
点击查看答案
填空题
以下函数把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);
点击查看答案
相关试题
下面的程序用来统计文件中字符的个数。请填...
[19]struct link * next
[19]struct link * next
下面程序的输出结果是 【18】 。 # ...