main(){intx=3;x+=--x+x++;printf(“x=%i\n”,x);}
举一反三
- main(){intx=0,z,y=z=-1;x=x---z-y;printf("x=%d\n",x);}输出结果是:main(){intx=0,z,y=z=-1;x=--x-z-y;printf("x=%d\n",x);}输出结果是:1
- 下面程序的输出结果是x=______,y=______。main(){intx=3,y=1;switch(x==3){case1:x+=1;y+=1;break;case2:x+=2;y+=2;break;default:x+=4;y+=4;}printf("x=%d,y=%d\n",x,y);}
- #includefunc(intx){x=10;printf(“%d,”,x);}main(){intx=20;func(x);printf(“%d”,x);}运行结果为()
- 以下程序运行后的输出结果是_main(){intx=0210;printf("%x\n",x);}
- 下列程序的结果为().change(intx,inty){intt;t=x;x=y;y=t;}main(){intx=2,y=3;change(x,y);printf("x=%d,y=%d\n",x,y);} A: A)x=3,y=2 B: B)x=2,y=3 C: C)x=2,y=2 D: D)x=3,y=3