![](https://lstatic.shangxueba.com/jiandati/h5/images/m_q_title.png)
[单选题]
已知:int a,b;下列switch语句中,()是正确的。
A.switch(a) { case a:a++; break; case b:b++; break; }
B. switch (a+b) {case 1:a+b; break; case 2:a-b }
C. switch(a*a) { case 1,2:++a; case 3,4:++b; }
D. switch(a/10+b) { case 5:a/5;break; default:a+b; }
提问人:网友18***192
发布时间:2022-01-07