totally confused

来源: 2004-06-30 08:58:40 [旧帖] [给我悄悄话] 本文已被阅读:

I just tested
int a=10
printf("a=%d a++=%d ++a=%d",a, a++,++a);

The gcc's output is:
a=12 a++=10 ++a=12
How to explain this? No matter which direction, the arguments are pushed into the stack, this result is not reasonable.