当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

若有定义float X=1.5;int a=1 b=3 C=2; 则正确的switch语句是( )。A. B. C.


若有定义float X=1.5;int a=1,b=3,C=2;,则正确的switch语句是()。

A.

B.

C.

D.

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • 若有定义:int a=4,b=5;float x=3.4,y=2.1;,则下列表达式的值为() (float) (a+b)/2+(int)×%(int)y

  • 若有定义语句:int a=10;double b=3.14; 则表达式A+a+b值的类型是A.charB.intC.doubleD.float

  • 若有以下定义:char a;int b;float c;double d;则表达式a*b+d-c值的类型为( )。A.A. float ###SXB#

  • 若有定义:int a=2 b=3;float x=3.5 y=2.5;则下面表达式的值为______。(float)(a+b)/2+(int)x%(int

  • 若有以下变量定义:float x; int a b;则正确的switch语句是( )。

  • 若有定义:int a=7;float x=2.5 y=4.7;则表达式x+a%3 (int)(x+y)%2/4的值是()。A.2.5B.2.75C.3.5D.