one more comment

回答: 回复:我用visual c++ 6.0: 对的.红辣椒2004-06-29 12:33:53

BTW, this is a good question. To really understand the results, one needs to know how compilers work AND some exposure to assembly language.

Now what if the first printf statement is:
print("a=%d a++=%d ++a=%d\n", a, a++, ++a);
what result will you see?

所有跟帖: 

don't understand? -pleaseexp- 给 pleaseexp 发送悄悄话 (295 bytes) () 06/30/2004 postreply 08:01:28

回复:don't understand? -clowhand- 给 clowhand 发送悄悄话 (380 bytes) () 06/30/2004 postreply 19:49:17

totally confused -goingcraz- 给 goingcraz 发送悄悄话 (259 bytes) () 06/30/2004 postreply 08:58:40

3! anwsers. Avoid! -红辣椒- 给 红辣椒 发送悄悄话 (13 bytes) () 06/30/2004 postreply 17:23:18

能解释吗? -真糊涂啦啦...- 给 真糊涂啦啦... 发送悄悄话 (0 bytes) () 06/30/2004 postreply 19:38:44

回复:能解释吗? -红辣椒- 给 红辣椒 发送悄悄话 (317 bytes) () 06/30/2004 postreply 19:47:15

这样看来,还是VC++合理些 -意味深长- 给 意味深长 发送悄悄话 (0 bytes) () 06/30/2004 postreply 19:46:01

Finally! got the answer, -fianlly- 给 fianlly 发送悄悄话 (81 bytes) () 07/01/2004 postreply 08:43:49

请您先登陆,再发跟帖!