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

若有定义:int a=4,b=5;float x=3.4,y=2.1;,则下列表达式的值为() (float) (a+b)/2+(int)×%(int)y


若有定义:int a=4,b=5;float x=3.4,y=2.1;,则下列表达式的值为()

(float) (a+b)/2+(int)×%(int)y

A.5.5

B.55

C.5.500000

D.55.00000

参考答案
您可能感兴趣的试题
  • 若有定义:inta=7;floatx=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是 A.2.500000

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

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

  • 若有以下变量定义: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.

  • 若有定义:inta=7;floatx=2.5 y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是 A.2.500000