单项选择题
有以下程序
fun(int x)
int p;
if(x==0||x==1)return(3);
p=x-fun(x-2);
return p;
main()
printf("%d\n",fun(7));
程序执行后的输出结果是( )。
A.7
B.3
C.2
D.0
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
若有下面的说明和定义: struct test int m1; char m2; float m3; union uu char ul[5]; int u2[2]; ua; myaa;则sizeof(struct test)的值是()。
A、 12
B、 16
C、 14
D、 9
点击查看答案&解析
单项选择题
有以下程序: #include <stdio.h> struct STU char name[10]; int num; ; void f1(struct STU c) struct STU b= LiSiGuo ,2042; c=b; void f2(struct STU *c) struct STU b= SanDan ,2044; *c=b; main() struct STU a= YangSan ,2041, b= WangYin ,2043; f1(a); f2(&b); printf( %d%d n ,a.num,b.hum); 执行后的输出结果是()。
A、 2041 2044
B、 2041 2043
C、 2042 2044
D、 2042 2043
点击查看答案&解析
相关试题
若以“叶”方式打开一个己存在的文件,则下...
下列说法错误的是()。