A place for Ogre users to discuss non-Ogre subjects with friends from the community.
-
AlexeyKnyshev
- Goblin
- Posts: 213
- Joined: Sat May 26, 2012 10:37 am
- Location: Russia
- x 13
-
Quote
-
0
login to like this post
Post
by AlexeyKnyshev »
Is it undefined behavior?
Code: Select all
int i = 1;
i = i++ + ++i;
printf("%d", i);
p.s. I'm sure about UB in " i = ++i + ++i; "