题目内容

以下程序运行结果是()#includevoid main(){int x=10,y=9;int a,b,c;a=(--x==y++)?--x:--y;b=x++;c=y;printf("%d %d %d",a,b,c);}

A. 8 8 9
B. 8 9 8
C. 8 8 10
D. 9 8 9

查看答案
更多问题

以下程序的运行结果是#includevoid main(){int a=3,b=4,t=1;if(a>b){t=a;a=b;b=t;}printf("%d",a);}

以下程序的运行结果是#includeint a,b;void fun(){a=100;b=200;}void main(){int a=5,b=7;fun();printf("%d%d\n",a,b);}

以下程序的运行结果是#includevoid main(){struct tu{int x,y,z;}t[3]={{1,2,3},{4,5,6},{7,8,9}};int s;s=t[1].x+t[2].z;printf("%d\n",s);}

#includevoid main(){int aa[3][3]={{2},{4},{6}};int i,p=aa[0][0];for(i=0;i<2;i++){if(i==0)aa[i][i+1]=p+1;else++p;printf("%d ",p);}}

答案查题题库