Perversions of computation
There is the following code snippet:
i = 5;
i = ++ i + ++ i;
')
Java and PHP return a result of 13
C ++ - 14.
What do you think is the correct result? Explanations are welcome.
Source: https://habr.com/ru/post/15610/
All Articles