题目内容

下面C语言代码的输出结果是: ( )int answer,result;answer=100;result=answer-10;printf(“The result is %d”, result+5);

A. The result is 10
B. The result is 90
C. The result is 95
D. The result is 100

查看答案
更多问题

下述变量定义错误的是:( )

A. double score=1.98,height;
B. char ch='\n',ch='A';
C. int age_1=28 , _age=12;
D. double x1=2.1,x2,x3;

C语言程序总是从 开始执行。

A. 主过程
B. 子程序
C. 主函数
D. 主程序

运行下面程序时,从键盘输入字母H,则输出结果是 ( )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!

下面程序的输出结果是:( )int x=8,y=-7,z=9;if(x

A. 8
B. 1
C. 9
D. 0

答案查题题库