单项选择题
请读程序:
#include<stdio.h>
func(int a,int b)
int c;
c=a+b;
return c;
main()
int x=6,y=7,z=8,r,
r=func((x-,y++,x+y),z-);
printf("%d\n",r);
上面程序的输出结果是_______。
A.11
B.20
C.21
D.31
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
请选出以下程序的输出结果_______。 #include<stdio.h> sub(int*s,inty) static int t=3, y=s[t];t-; main() int a[]=1,2,3,4,i,x=0; for(i=0;i<4;i++) sub(a,x);printf( %d ,x); printf( n );
A.1234
B.4321
C.0000
D.4444
点击查看答案&解析
单项选择题
运行以下程序后,如果从键盘上输入china#<回车>,贝愉出结果为_______。 #include<stdio.h> main() int v1=0,v2=O;char ch; while((ch=getchar())!=’#’) switch(ch) case’a’: case’h’: default:v1++; case’O’:v2++; printf( %d,%d n ,v1,v2);
A.2,0
B.5,0
C.5,5
D.2,5
点击查看答案&解析
相关试题
有以下程序 #include<stdio.h> main...