![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
[单选题]
设int型变量选项格式A、b,float型变量x、y,char型变量ch均已正确定义并赋值,正确的switch语句是()。
A.b,float型变量x、y,char型变量ch均已正确定义并赋值,正确的switch语句是()。选项格式
B.switch(x+y)
C.switch(ch+1){}{}
D.switchch
E.switch(a+b);{}{}
查看答案
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
A.b,float型变量x、y,char型变量ch均已正确定义并赋值,正确的switch语句是()。选项格式
B.switch(x+y)
C.switch(ch+1){}{}
D.switchch
E.switch(a+b);{}{}
A、3
B、5
C、4
D、3.5
A.doublefun1(inta,intb,intc)
B.doublefun2(floata,intb,doublec)
C.intfun3(inta,floatb,doublec)
D.doublefun4(int,float,double)
设x和y均为int型变量,则以下for循环中的scanf语句最多可执行的次数是【】.for(x=0,y=0;y!=123&&x<3;x++)scanf("%d",&y);
A.a的值是字符C'
B.a的值是浮点型
C.不允许字符型和浮点型相加
D.a的值是字符“A”的ASCII值加上1