当前位置:
首页->
智慧树网课答案问答
->
有如下程序: #include int main() { int m=1,a=0,b=0; switch(m) { case 0:b++; case 1:a++; case 2:a++;b++; } printf(\"a=%d,b=%d\ \",a,b); return 0; } 该程序的输出结果是( )
题目
有如下程序: #include int main() { int m=1,a=0,b=0; switch(m) { case 0:b++; case 1:a++; case 2:a++;b++; } printf(\"a=%d,b=%d\ \",a,b); return 0; } 该程序的输出结果是( )