|
From: jinfeng <jin...@16...> - 2012-10-03 05:17:51
|
Hello everyone, today I get a question about the implementation of the 'i=i++' in Mingw-gcc which is different with Gcc on my fedora mechine, code below:
int c=1, d=11;
c = c++;
printf("%d %d\n",c,d);
d = c++;
printf("%d %d\n",c,d);
In mingw, the result is:
1 11
2 1
But in Fedora and VC, the result is:
2 11
3 2
Anyone can help me ? |