填空题
下列程序的输出结果是______。
long fun5(int n)
long s;
if((n==1)‖(n==2))
s=2;
else
s=n+fun5(n-1);
return(s);
main()
long x;
x=fun5(4);
printf("%1d\n",x);
【参考答案】
9
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序的输出结果是______。 #include<stdlibh> main() char*s1,*s2,m; s1=s2=(char*)malloc(sizeof(char)); *s1=15; *s2=20; m=*s1+*s2; printf( %d n ,m);
点击查看答案&解析
填空题
已定义char ch=’$’;int i=1,j;,执行j!=ch&&i++以后,i的值为______。
点击查看答案&解析
相关试题
下列程序的输出结果是______。 main...
阅读下列程序,则程序的输出结果为____...
有以下程序 #include <stdio.h> mai...
下面程序的运行结果是______。 #in...