Wow, I had a hard time understanding and I have to say I never knew about that.
I was reading up on
sequence point on wiki and found out something interesting.
- Code: Select all
INT I = I++;
Would have yield undefined result.
I guess if the same variable is modified more than once between previous and next sequence points, its result will be undefined.
Points taken from wiki. Hope I got it right.