单项选择题
若有程序
fun(int a,int b)
static int c=0
c+=a+b;
retum c;
main()
int x=5,y=3,z=7,r;
r=fun((y,x+y),z);
r=fun(x,y);
printf("%d\n",r);
上面程序的输出结果______。
A.23
B.15
C.19
D.18
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: #include<stdio.h> main() char c[6]; int i=0; for(j<6;c[i]=getchar(),i++); for(i=0,i<6;i++)putchar(c[i]); printf( n ); 如果从键盘上输入: ab<回车> c<回车> def<回车> 则输出结果为______。
A.a
b
c
d
e
f
B.a
b
c
d
C.ab
c
d
D.abcdef
点击查看答案&解析
单项选择题
下面程序 main() int x=100,a=10,b=20,okl=5,ok2=0; if(a<B) if(b!=15) if(!ik1) x=1; else if(ok2)x=10; x=-1; printf( %d n ,x); 的输出是______。
A.-1
B.0
C.1
D.不确定的值
点击查看答案&解析
相关试题
请读程序: #include<stdio.h> main...
下面程序的输出是______。 main()...
以下程序运行后,输出结果为______。...