Possible Duplicate:
Could anyone explain these undefined behaviors (i = i++ + ++i , i = i++, etc…)
Why does sizeof(x++) not increment x?
Here the value of i
is 5 but it should be 6 or 7 I guess. What's the reason?
int main(void){
int i=5,j;
j=sizeof(i++ + ++i);
printf("%d %d",i,j);
}