[ad_1]
It’s the oldest question ever. Why do people find this so fascinating?
This is undefined behavior; you’re relying on side-effects without a sequence point between modifications.
[ad_2]
solved ambigious behaviour of increment operator in printf [duplicate]