网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

运行下面程序时,从键盘输入字母H,则输出结果是 main() { char ch; ch=getchar(); swimh(ch) {case'H':printf("Hello!\n"); case'G':printf("Good morning!\n"); default:printf("Bye_Bye!\n"); } }

A.Hello!

B.Hello! GoodMoring!

C.Hello! Good moming! Bye_ye!

D.Hello! Bye_ye!


参考答案

更多 “ 运行下面程序时,从键盘输入字母H,则输出结果是 main() { char ch; ch=getchar(); swimh(ch) {case'H':printf("Hello!\n"); case'G':printf("Good morning!\n"); default:printf("Bye_Bye!\n"); } }A.Hello!B.Hello! GoodMoring!C.Hello! Good moming! Bye_ye!D.Hello! Bye_ye! ” 相关考题
考题 运行下面程序时,从键盘输入字母H,则输出结果是#includestdio.hmain(){ char ch;ch=getchar();switch(ch){case ′H′:printf("Hello!\n");case ′G′:printf("Good morning!\n");default:printf("Bye_Bye!\n");}}A.Hello!B.Hello! Good Moring!C.Hello! Good morning! Bye_Bye!D.Hello! Bye_Bye!

考题 执行下面的程序时,输入abc(其中CR代表回车),输出结果是()。includeinclude 执行下面的程序时,输入abc<CR>(其中CR代表回车),输出结果是( )。 #include<stdio.h> #include <string.h> main() { char ch; while((cn=getchar())!='n') { switch(ch-'a') { case 0: putchar(ch+1); case 1:putchar(ch+1);break; case 2:putchar(ch+2); caSe 3:putchar(ch+2);break; } } }A.abcB.bbcC.abcdD.bbcee

考题 运行下面程序时,从键盘输入字母H,则输出结果是includemain(){ char ch;ch=getchar();s 运行下面程序时,从键盘输入字母H,则输出结果是 #include<stdio.h> main() { char ch; ch=getchar(); switch(ch) { case 'H':printf("Hello!\n"); case 'G':printf("Good morning!\n"); default:printf("Bye_Bye!\n"); } }A.Hello!B.Hello! GoodMoring!C.Hello! Goodmorning! Bye_Bye!D.Hello! Bye_Bye!

考题 运行下面程序时,从键盘输人字母A,则输出结果是()。 #include<stdio.h> void main() { char ch; ch=getchar(); switch(ch) { case’A’: printf("AAAAn"); case’B’: printf("BBBBn"); default:printf ("CCCCn"); } }A.AAAAB.AAAA BBBBC.AAAA BBBB CCCCD.AAAA CCCC

考题 【单选题】在执行下述程序时,若从键盘输入字母H,则输出结果是_______。 #inlude <stdio.h> main() { char ch; ch=getchar(); switch(ch) { case 'H':printf("Hello! n"); case 'G':printf("Good morning! n"); default:printf("Bye_Bye! n"); } }A.Hello!B.Hello! Good morning!C.Hello! Good morning! Bye_Bye!D.Hello! Bye_Bye!

考题 在执行下述程序时,若从键盘输入字母H,则输出结果是()。 #include <stdio.h> int main() { char ch; ch=getchar(); switch(ch) { case 'H':printf("Hello! n"); case 'G':printf("Good morning! n"); } }

考题 2、在执行下述程序时,若从键盘输入字母H,则输出结果是()。 #include <stdio.h> int main() { char ch; ch=getchar(); switch(ch) { case 'H':printf("Hello! \n"); case 'G':printf("Good morning! \n"); } }

考题 运行下列程序时,从键盘输入字母H,则输出结果是()。 #include <stdio.h> int main() { char ch; ch=getchar(); switch(ch) { case 'H':printf("Hello!n"); case 'G':printf("Good morning!n"); default:printf("Good Bye!n"); } }A.Hello!B.Hello! Good morning!C.Hello! Good morning! Good Bye!D.Hello! Good Bye!

考题 如果下列程序正常运行,则当从键盘输入字母A时,输出结果为()。  #include <stdio.h>  main()     {  char ch;       ch=getchar();      switch(ch)      {  case 65: printf(“%c”, ‘A’);       case 66: printf(“%c”, ‘B’);       default: printf(“%s”, “other”);    }    }A.AB.ABC.ABotherD.不确定