问题详情
设int型变量a、b,float型变量x、y,char型变量ch均已正确定义并赋值,则正确的swith语句是()。
A、switch (x+y) {...}
B、switch (ch+1) {...}
C、switch ch {...}
D、switck (a+b) {...}