Find the output of int a = 3.5 + 4.5;
0
7
8
8.0
Answers
Answered by
2
Answer:
a= 3.5 + 4.5
a= 8
Explanation:
Just simple addition. Ignore the 'a' and solve.
Answered by
0
Answer:
The correct answer is option C
Explanation:
- 3.5 + 4.5 = 8.0 is a real number.
- So it is converted to a downgrade to an int value. So a = 8.
Similar questions