单项选择题两次运行下列的程序,如果从键盘上分别输入3和1,则输出结果是( )。 main() int x; scanf( %d ,&x); if(x++>2)printf( %d ,x); else printf( %d n ,x--);
单项选择题有以下程序: #include<stdio.h> 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); 程序的运行结果是______。