+ 3
x+=2+(y+=3); is working,but why x+=2+y+=3 is not working?
5 odpowiedzi
+ 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 🙏