题目内容

下列程序段 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);输出结果是()

printf("%-8d5\n",1234);的输出结果是()

答案查题题库