假设有:int a=5;float b=5.0,以下错误的是什么?
举一反三
- 假设有:int a=5;float b=5.0,以下错误的是什么? A: a/5结果是1 B: a/10结果是0 C: a%b结果是0 D: *2的结果是10.000000
- 假设有 int a[5],则以下表述错误的是什么?
- 设有变量定义:int i=3,j=5;float x=2.5;double y=5.0;则表达式y+=i-=j*=++x;的计算结果为________。
- 下列定义形式错误的是( ) A: float a[ ] B: float a[5] C: int a[]=new int[5] D: float []c
- 在Java中,下列选项不合法的赋值语句是____ A: float a=3/5; B: int b=3/5; C: float c=3/5.0; D: double d=3/5.0;