The answer, from the same site:<p><a href="http://stackoverflow.com/questions/24853/what-is-the-difference-between-i-and-i" rel="nofollow">http://stackoverflow.com/questions/24853/what-is-the-differe...</a><p>"<i>++i will increment the value of i, and then return the incremented value.</i>"<p>"<i>i++ will increment the value of i, but return the pre-incremented value.</i>"
Using gcc or g++ I get "1" not "0" for that expression, as I would intuitively expect. But this is undefined behavior in c/c++:
tmp.c: In function ‘main’:
tmp.c:3:5: warning: operation on ‘i’ may be undefined [-Wsequence-point]