Possible Duplicate:
Could anyone explain these undefined behaviors (i = i++ + ++i , i = i++, etc…)
#include<stdio.h>
void main()
{
int a=5;
printf("%d\t%d\t%d\n",a,a++,++a);
}
Output of the above program showing 7 6 7 in gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5). Why it is showing instead of 7 6 6 ?