
pre increment operator ++ in c++ , operator precedence
MCA @SILICON BBSR
I am basically a student pursuing my MCA at SIT, Bhubaneswar. I love coding and I have my interests in open source software, Front-end web development and Responsive web design...
Markdown supported · ⌘↵ to post
Luke Li
This is undefined behavior in C++ and you should never write code like this, and do not bother to make sense of the compiler's output, it's a waste of time.
It boils down to "unsequenced multiple modifications" to the same memory location
n, i.e. they can happen in any order.P.S. Always add
-Wallwhen compiling with gcc.