题目内容

有以下程序,程序的运行结果是( )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

The Senate

答案查题题库