+ 4
C++ - Post increment logic in Numeric expressions
Where error in my logic? https://code.sololearn.com/cFtbZbbbc8wO/?ref=app
2 Answers
+ 3
Robin : Thank. I agree.
+ 2
I understand. I myself would never write code like this. But the fact is that the behavior of the program code is not very obvious in this case (behavior of the i ++ / i execution point - (Post Increment / Decrement). Behavior is different in Java and in C ++. In other languages (I did not check versions of the compiler) And I asked myself a question after a couple of top three local tests on this topic. And it became just interesting. Therefore, I asked the question: âmaybe someone knows the correct answer to such a question?â.