What is the value of <code>7.0 / 2</code>?
- Acheck_circle
3.5
- B
3
- C
Compiler error
- D
4
Explanation
A <code>double</code> operand promotes the other to <code>double</code>; 7.0 / 2 = 3.5.
AP Computer Science A· difficulty 3/5
What is the value of <code>7.0 / 2</code>?
3.5
3
Compiler error
4
Explanation
A <code>double</code> operand promotes the other to <code>double</code>; 7.0 / 2 = 3.5.
Want 10 more like this — adaptive to your weak spots?