printf("%d",(a=-3)&&(b=7));的输出结果是()
A. 无输出
B. 结果不确定
C. 0
D. 1
执行下面程序段时,若使w的值为4,则x,y输入的值应满足的条件是()。intx,y,z=1,w=1;scanf(“%d,%d”,&x,&y);if(x>0)z++;if(x>y)w+=z;elseif(x==y)w=5;elsew=2*z;
A. x>y
B. 0 C. x D. 0>x>y
下面程序的输出是()#includemain(){intx=1,y=0,a=0,b=0;switch(x){case1:switch(y){case0:a++;break;case1:b++;break;}case2:a++;b++;break;}printf("a=%d,b=%d\n",a,b);}
A. a=1,b=1
B. a=2,b=2
C. a=1,b=0
D. a=2,b=1
以下程序的输出结果是()main(){floatx=2,y;if(x<0)y=0;elseif(x<5&&!x)y=1/(x+2);elseif(x<10)y=1/x;elsey=10;printf(”%f\n”,y);}
A. 10.000000
B. 0.500000
C. 0.250000
D. 0.000000