以下是引用shujucangku在2004-05-09 18:27:59的发言:
呵呵,纯粹是考试用的,你查一下优先级就知道了
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.