0
Why x+=3 x=5 ???
4 odpowiedzi
+ 7
if x = 2, and you do x+=3, then x will end up as 5.
Because x+=3 is actually x = x + 3
+ 1
Is The answer is 3 or 5
0
5
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