题目内容

写出下列程序运行结果:#include void main(){ int a=2;switch(a){ case 2:case 3:a++;case 4:a++;default:a+=15;}printf("a=%d\n",a);}

A. 15
B. 16
C. 19
D. 18

查看答案
更多问题

下列程序段中,能将变量x、y中值较大的数保存到变量a,值较小的数保存到变量b中的是

A. if(x>y)a=x;b=y;else a=y;b=x;
B. if(x>y){a=x;b=y;}else a=y;b=x;
C. if(x>y){a=x;b=y;}else(x D. if(x>y){a=x;b=y;}else{ a=y;b=x;}

下列程序运行结果第一行_________;第二行___________。#includeint main(){int a=0,b=2;switch(++a,a*b){case 1:printf("1");case 2:printf("2");case 3:printf("3\n");deault:printf("other\n");}return 0;}

Please sit next to Nancy. 该句改为否定句为:

A. Please don't sit next to Nancy
B. please not sit next to Nancy.
C. not sit next to Nancy.
D. No sit next to Nancy.

禁止停车。 该句翻译为:

A. No Park.
B. No Parking.
C. Don't Parking.
D. No car.

答案查题题库