题目内容

以下程序运行的结果为________。main(){ int a,b,c,x,y,z;a=10;b=2;c=!(a%b);x=!(a/b);y=(a=0);z=(a=0);printf("%d,%d,%d,%d\n",c,x,y,z);}

查看答案
更多问题

下列程序段 main() {int a;scanf(“%d”,&a);switch(a){case 1:printf(“Monday\n”);break;case 2:printf(“Tuesday\n”);break;case 3:printf(“Wednesday\n”);break;case 4:printf(“Thursday\n”);break;case 5:printf(“Friday\n”);break;case 6:printf(“Saturday\n”);break;case 7:printf(“Sunday\n”);break;default:printf("error!\n");}通过键盘输入3后输出的结果是(_)

分析以下程序运行后的输出结果是( )。main(){int i=1,j=2,k=3;if(i++==1&&(++j==3||k++==3));printf("%d %d %d\n",i,j,k);}

运行下面程序时,从键盘输入字母H,则输出结果是( )。#includemain(){char ch;scanf("%c",&ch);switch(ch){ case ‘H’:printf("Hello!\n");case ‘G’:printf("Good morning!\n");default:printf("Bye Bye!\n");}}

printf("%#x\n",12);输出结果是()

答案查题题库