0
Output After incrementation
https://code.sololearn.com/cEXc4T064307/?ref=app Why does this program output 7? Shouldnât y be 8 after y++?
2 Answers
+ 4
The problem is that y++ isnt evaluated.
The first part of the if is allready false. So it wont evaluate the part behind &&.
+ 1
Ohh, yes, youâre right! I totally havenât thought about that all. Thanks a lot :)