读程序写结果main(){ int x=4,y=0,z;x*=3+2;printf("%d",x);x*=(y==(z=4));printf("%d",x);}
查看答案
读程序写结果main(){ int x,y,z;x=3; y=z=4;printf("%d",(x>=z>=x)?1:0);printf("%d",z>=y && y>=x);}
读程序写结果main(){ int x=1,y=1,z=10;if(z<0)if(y>0) x=3;else x=5;printf("%d\t",x);if(z=y<0) x=3;else if(y==0) x=5;else x=7;printf("%d\t",x);printf("%d\t",z);}
读程序写结果main(){ char x=‘B’;switch(x){ case ‘A’: printf(“It is A.”);case ‘B’: printf(“It is B.”);case ‘C’: printf(“It is C.”);default: printf(“other.”);}}
读程序写结果main(){ int x=1,y=0,a=0,b=0;switch(x){ case 1: switch(y){ case 0: a++;break;case 1: b++;break;}case 2: a++;b++;break;case 3: a++;b++;}printf("a=%d,b=%d\n",a,b);}