以下程序的运行结果是 。#includeint main(){ int a,b,c,d,x;a=c=0;b=1;d=20;if(a) d=d-10;else if(!b)if(!c) x=15;else x=25;printf("%d\n",d);return 0;}
查看答案
以下程序的运行结果是 。#includeint main(){ int x,y=-2,z=0;if((z=y)<0) x=4;else if(y==0) x=5;else x=6;printf("\t%d\t%d\n",x,z);if(z=(y==0))x=5;x=4;printf("\t%d\t%d\n",x,z);if(x=z=y) x=4;printf("\t%d\t%d\n",x,z);return 0;}
以下程序的运行结果是 。#include int main(){ int a=-10,b=-3;printf("%d,",-a%b);printf("%d,",(a-b,a+b));printf("%d\n",a-b?a-b:a+b);return 0;}
以下程序的运行结果是 。#include int main(){ int x,y,z;x=3;y=z=4;printf("%d,",(x>=y>=x)?1:0);printf("%d\n",z>=y&&y>=x);}
若运行以下程序时输入:-2<回车>,则程序的输出结果是 。#include int main(){ int a,b;scanf("%d",&a);b=(a>=0)?a:-a;printf("b=%d",b);return 0;}