运行下列程序时 从键盘输入字母H 则输出结果是()。 #include <stdio.h> int main() { char

大学网课 已帮助 人

运行下列程序时,从键盘输入字母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!

运行下列程序时 从键盘输入字母H 则输出结果是()。 #include &lt;stdio.h&gt; int main() { char

热搜:汉字输入时采用输入码,存储或处理汉字时