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