设int型变量a、b,float型变量x、y,char型变量ch均已正确定义并赋值,正确的switch语句是( )。

admin2009-02-15  36

问题 设int型变量a、b,float型变量x、y,char型变量ch均已正确定义并赋值,正确的switch语句是(  )。

选项 A、switch(x+y){……}
B、switch(ch+1){……}
C、switch ch{……}
D、switch(a+b):{……}

答案2

解析
转载请注明原文地址:https://kaotiyun.com/show/yAnp777K
0

最新回复(0)