设有变量定义:int i=3,j=5;float x=2.5;double y=5.0;则表达式y+=i-=j*=++x;的计算结果为________。
举一反三
- 中国大学MOOC: 设有变量定义:int i=3,j=5;float x=2.5;double y=5.0;则表达式y+=i-=j*=++x;的计算结果为________。
- 设有变量定义:float x=2.5;double y=5.0;则表达式 (int)x / y的值为( )。(若为浮点类型,则用小数点后一位数字表示) A: 2 B: 2.5 C: 3 D: 2.0
- 设有定义 int x ; float y ; double z ;,则表达式 x + z - y 值的数据类型为______。 A: float B: cha C: int D: double
- 设有变量定义:“char x; int y; float z;double w;” 则表达式:x*y+z+w值的数据类型是
- 下列变量定义错误的是() A: char ch1='m', ch2='\'; B: float x, y=1.56f; C: public int i=100, j=2, k: D: double x;y;