Evaluate the following Java expressions a, b, c are integers and d, f are floating point numbers. The
value of a = 5, b = 3 and d = 1.5.
(i) f = a+b/a
(ii) c = (int)d * a + b
(iii) c = (a++)*(int)d+a
(iv) f = (++b)*b – a
(v) c = a – (b++) * (--a)
Answers
Answered by
0
Answer:
i) 5
ii) 8
iii) 11
iv) 11
v) -7
Similar questions
Science,
3 months ago
Math,
6 months ago
Math,
6 months ago
Math,
10 months ago
Business Studies,
10 months ago