Q
In C, what is the value of the expression 5 / 2 * 2.0?
Correct Answer:
D. 4.0
Explanation:
5/2 is evaluated first as integer division and gives 2. Then 2 * 2.0 = 4.0.
ALSO KNOW (related points):
• In C, what is the value of x after int x = 2 + 3 * 4 % 5;? → 4