题目内容

若变量已正确定义,有以下程序段,其输出结果是( )int a=3,b=5,c=7;if(a>b) a=b;c=a;if(c!=a) c=b;printf(“%d,%d,%d\n”,a,b,c);

A. 程序段有语法错误
B. 3,5,3
C. 3,5,5
D. 3,5,7

查看答案
更多问题

有以下程序,程序的运行结果是( )int main(){int x=1,y=0,a=0,b=0;switch(x){case 1: switch(y){case 0: a++;break;case 1: b++;break;}case 2: a++;b++;break;case 3: a++;b++;}printf(“a=%d,b=%d\n”,a,b);}

A. a=1,b=0
B. a=2,b=2
C. a=1,b=1
D. a=2,b=1

有以下程序,程序的运行结果是( )int main(){int a=10,b=20,c=30;if(a>b)if(b

A. 31
B. 21
C. 11
D. 10

The Legislative Branch

The House of Representatives

答案查题题库