+ 1

If a=5 and b=9; Find this; a+= a++ - ++b +a Wth reference to java programming.

25th Sep 2019, 1:54 PM
Kanak Sharan
Kanak Sharan - avatar
6 ответов
+ 5
The answer is 7. The above expression can be converted into the following: a = a + (a + 1) - (b + 1) + a; // After this computation, b = 10 ^---------(after a++ here, a becomes 6) So, a = 5 + 6 - 10 + 6; Therefore, a = 7;
25th Sep 2019, 5:35 PM
SSki11
SSki11 - avatar
+ 1
21
25th Sep 2019, 2:56 PM
Marina Vasilyova
Marina Vasilyova - avatar
0
Nothing else
25th Sep 2019, 2:47 PM
Kanak Sharan
Kanak Sharan - avatar
- 1
Tell only ans
25th Sep 2019, 2:47 PM
Kanak Sharan
Kanak Sharan - avatar
- 2
How is it 21
25th Sep 2019, 3:26 PM
Kanak Sharan
Kanak Sharan - avatar