UB or not UB?
Posted: Wed Oct 02, 2013 6:47 am
Is it undefined behavior?
p.s. I'm sure about UB in " i = ++i + ++i; "
Code: Select all
int i = 1;
i = i++ + ++i;
printf("%d", i);
Code: Select all
int i = 1;
i = i++ + ++i;
printf("%d", i);