设a,b均为float型常量,且a=5.5,b=2.5,则表达式(int)a+b/b的值是()A.6.500000B.6C.5.500000D.6.000000

设a,b均为float型常量,且a=5.5,b=2.5,则表达式(int)a+b/b的值是()

A.6.500000

B.6

C.5.500000

D.6.000000


参考答案和解析
6.000000

相关考题:

已有定义:float x=5.5;则表达式:x=(int)x+2的值为。

设变量a是int型,f是float型,i是double型,则表达式10+′a′+i*f值的数据类型为A.intB.floatC.doubleD.不确定

若有定义:int a=4,b=5;float x=3.4,y=2.1;,则下列表达式的值为( )(float) (a+b)/2+(int)×%(int)yA.5.5B.55C.5.500000D.55.00000

设x和y均为int型变量,且x=1,y=2,则表达式double(1+x/y)的值为【12】。

设a和b均为double 型变量,且a=5.5、b=2.5,则表达式(int) a +b/b的值是( )。A.6.500000B.6C.5.500000D.6.000000

设变量a是int型,f是float型,i是double型,则表达式10+'a'+i*f的值的数据类型为( )。A.intB.floatC.doubleD.不确定

设有如下变量定义: double a=3.500000;float b=2.5; int m=2,n=3; 则表达式“(float)(m+n)/2+(int)a%(int)b”的值是( )A.2.5B.3.5C.4.5D.表达式不正确

设变量a是 int 型,f是 double 型,i是 float 型,则表达式10+'a'+i*f值的数据类型A.intB.floatC.doubleD.不确定

若有定义: 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.0

设a和b均为double型变量,且a=5.5、b=2.5,则表达式(int)a+b/b的值是A.6.500000B.6C.5.500000D.6.000000

设变量a是int型,f是double型,i是float型,则表达式10+'a'+i * f值的数据类型是A.intB.floatC.doubleD.不确定

设变量a是int型,f是int型,i是double型,则表达式10+a+i*f值的数据类型为A.int B.float C.double D.不确定

设a和b均为double型变量,且a=5.5、b=2.5,则表达式(int)a+b/b的值是A.6.5B.6C.5.5D.6

a和b均为double型变量,且a=1.5,b=2,则表达式(int)a+b/b的值为:A.2.500000B.2.000000C.2D.3

若有定义:int a=2,b=3;floatx=3.5,y=2.5;则表达式(float)(a+b)/2+(int)x%(int)y的值是() A.3.5B.3.0C.2.5D.2.0

若有定义:int a=4, b=5;float x=3.4,y=2.1;,则下列表达式的值为( )。 (float) (a+b)/2+(int)x%(int)yA.5.5B.55C.5.5D.55

设变量a是int型,f是float型,i是double型,则表达式10+′a′+i*f值的数据类型为A.int B.float C.double D.不确定

若有定义:“int a=4,b=5;float x=3.4,y=2.1;”,则下列表达式的值为( )。 (float)(a+b)/2+(int)x%(int)y;A.5.5B.55C.5.500000D.55.00000

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

设a和b均为double型变量,且a=5.5、b=2.5,则表达式(int)a+ b/b的值是A.6.5B.6C.5.5D.6

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

设a和b均为双精度型变量,且a=5.5、b=2.5,则表达式(int)a+b/b的值是( )。A.6.5B.6C.5.5D.6

设a为int变量,b为float变量,则a+b的运算结果为()型数据。

设a=2,b=3,x=3.5,y=2.5,则(float)(a+b)/2+(int)x%(int)y为()。

设x和y均为int型变量,且x=1,y=2,则表达式1.0+x/y的值为()

若有定义:int a=2,b=3;floatx=3.5,y=2.5;则表达式(float)(a+b)/2+(int)x%(int)y的值是()A、3.5B、3.0C、2.5D、2.0

填空题设a为int变量,b为float变量,则a+b的运算结果为()型数据。

单选题若有定义:int a=2,b=3;floatx=3.5,y=2.5;则表达式(float)(a+b)/2+(int)x%(int)y的值是()A3.5B3.0C2.5D2.0