Code:
#include<stdio.h>
main()
{
int i=5;
printf("%d %d %d %d %d \n",i,i++,++i,i++,i);
}
In the TurboC compiler the output is
8 7 7 5 5
In the GCC compiler the output is
8 7 8 5 8

why the difference?