int x = 0;

++x = x++;

cout << x << endl;


result:
2

(VC++.net)