niusouti.com
更多“设有语句:floatx=1,y;y=x3/2;则y的值是() ”相关问题
  • 第1题:

    设有语句:int a=7;float x=2.5,y=4.7;则表达式 x+a%3*(int)(x+y)%2/4的值是_______。


    0.5

  • 第2题:

    8、设有定义:int a=7;float x=2.5,y=4.7; 则表达式x+a%3*(int)(x+y)%2/4的值是

    A.2.75

    B.3.5

    C.0.0

    D.2.5


    2 2 解析:本题考查表达式的运算。因为x=1,y=2,所以表达式(x+y)%2=3%2=1,(int)a/(int)b=(int)}(3/2)=1,因此整个表达式的结果为(x+y)%2+(int)a/(int)b=1+1=2。

  • 第3题:

    18、设有语句:int a=7; float x=2.5, y=4.7;,则表达式x+a%3*(int) (x+y)%2/4的值是 。(小数点后面保留一位)


    1,3

  • 第4题:

    设有语句:int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是____________。

    A.2.500000

    B.2.750000

    C.3.500000

    D.0.000000


    b=a=c/2

  • 第5题:

    设有定义:int a=7;float x=2.5,y=4.7; 则表达式x+a%3*(int)(x+y)%2/4的值是()

    A.2.75

    B.3.5

    C.2.5

    D.0.0


    6