0

Why x+=3 x=5 ???

24th Dec 2016, 7:25 PM
Kseniya
4 Respuestas
+ 7
if x = 2, and you do x+=3, then x will end up as 5. Because x+=3 is actually x = x + 3
25th Dec 2016, 3:37 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
Is The answer is 3 or 5
24th Dec 2016, 7:29 PM
Nate
0
5
3rd Jan 2017, 10:06 AM
Raj kishan
Raj kishan - avatar
0
x+=3 means x=x+3 and previously value 2 is assigned on the x variable so x=x+3 ---> x=2+3 is 5
9th Jan 2017, 6:54 PM
Sameer Namdeo
Sameer Namdeo - avatar