+ 1

Please explain how the answer to this code is 12?

https://code.sololearn.com/W896AYalIGsu/?ref=app

26th May 2022, 10:21 AM
laucherr
laucherr - avatar
2 Answers
+ 4
The first write prints 1, the second one prints 2. ++x is the same as x + 1.
26th May 2022, 10:25 AM
Paul
Paul - avatar
+ 1
Paul Thanks!
26th May 2022, 11:45 AM
laucherr
laucherr - avatar