- 论坛徽章:
- 0
|
上表从上到下,优先级由高到低。。
另外还有两个NOTE:
Note 1:
Parentheses are also used to group expressions to force a different order of evaluation; such parenthetical expressions can be nested and are evaluated from inner to outer
Note 2:
Postfix increment/decrement have high precedence, but the actual increment or decrement of the operand is delayed (to be accomplished sometime before the statement completes execution). So in the statement y = x * z++; the current value of z is used to evaluate the expression (i.e., z++ evaluates to z) and z only incremented after all else is done.
[ 本帖最后由 maxxfire 于 2008-9-19 13:47 编辑 ] |
|