Not totally true, you have to take into account [sequence points](http://stackoverflow.com/questions/3575350/sequence-points-in-c), but in this case, yes, it's undefined behavior
– Garf365Feb 03 '17 at 09:33
This will change shortly [with C++17](http://stackoverflow.com/questions/38501587/what-are-the-evaluation-order-guarantees-introduced-by-c17) though.
– QuentinFeb 03 '17 at 09:51