+ 3
x+=2+(y+=3); is working,but why x+=2+y+=3 is not working?
3 Answers
+ 2
Martin,
Just need clarity ...
Isn't `y += 3` a statement instead? I'm guessing it was supposedly to be on its own rather than being a sub-expression. Is that why?
+ 1
1. x = x + 2 + ( y = y + 3)
x = x + 2 + ( 3 )
x = 5
2. x = x + 2 + y = y + 3
Itâs not logical
+ 1
Martin,
Thanks for the clarification đ