运行下面程序时,从键盘输入字母H,则输出结果是 #include<stdio.h> main() {char ch; ch=ge
14 查阅
运行下面程序时,从键盘输入字母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! Good Moring!
C.Hello! Good morning! Bye_Bye!
D.Hello! Bye_Bye!
参考答案: