题目内容

以下程序的运行结果是 。#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;}

若运行以下程序时输入:100<回车>,则程序的运行结果是 。#include int main(){ int a;scanf("%d",&a);printf("%s",(a%2!=0)?"no":"yes");return 0;}

答案查题题库