这是标准的国内学院派出的题,一帮混蛋加废物。
如果你老师出这种题,那你碰到了一个很差的老师。如果哪本书上出这种题,这本书你可以扔掉了。
[此贴子已经被静夜思于2004-05-08 09:50:55编辑过]
it is wrong,
---------------------------------------------------------------------------
Don't get carried away and increment or decrement the same value more than once in the same statement. The problem is that the use-then-change and change-then-use rules can become ambiguous. That is, a statement such as
x = 2 * x++ *(3 - ++x); // don't do it
can produce quite different results on different systems. C++ does not define correct behavior for this sort of statement.