题目内容

语句a=3;printf("%d",a==2);执行后输出的结果是()

A. 1
B. 2
C. 3
D. 0

查看答案
更多问题

下面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!

答案查题题库