【单选题】以下程序运行结果为( )。 #include”stdio.h” main() { int s=589 s,m; switch(s/100) { case 0: case 1: case 2: case 3: case 4: case 5: m=1; case 6: m=3; case 7: m=5; break; case 8: m=6; break; case 9: m=...
【单选题】以下程序段执行后结果为( ) {int a=58,m; switch(s/10) {case 0: case 1: case 2: case 3: case 4: case 5: m=1; case 6: m=3; case 7: m=5;break; case 8: m=6;break; case 9: m=7;break; default:m=0;} printf(“m=%d\...
【单选题】给出下面代码段,当m=0时,输出结果是什么? A 3章3节2目36页 switch(m) { case 0: System.out.println("case 0"); case 1: System.out.println("case 1"); break; case 2: default: System.out.println("default"); }
【单选题】已知如下代码: switch(m) { case 0: System.out.println('Condition0'); case 1: System.out.println('Condition 1'); case 2: System.out.println('Condition 2'); case 3: System.out.println('Condition 3'); break; de...