以下程序的运行结果是 。#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;}
若运行以下程序时输入字符'Q',则程序的运行结果是 。#include int main(){ char ch;scanf("%c",&ch);ch=(ch>='A'&&ch<='Z')?(ch+32):ch;ch=(ch>='a'&&ch<='z')?(ch-32):ch;printf("%c",ch);return 0;}