2009-04-08 20:20:19 +00:00
|
|
|
Operator Associativity
|
|
|
|
-------------------------------------------------------------
|
|
|
|
() [] -> . left to right
|
|
|
|
! ~ ++ -- - (type) * & sizeof new delete right to left
|
|
|
|
->* .* left to right
|
|
|
|
* / % left to right
|
|
|
|
+ - left to right
|
|
|
|
<< >> left to right
|
|
|
|
< <= > >= left to right
|
|
|
|
== != left to right
|
|
|
|
& left to right
|
|
|
|
^ left to right
|
|
|
|
| left to right
|
|
|
|
&& left to right
|
|
|
|
|| left to right
|
|
|
|
?: right to left
|
|
|
|
= += -= *= /= %= <<= >>= &= ^= |= throw right to left
|
|
|
|
?: (C++, third operand) right to left
|
|
|
|
, left to right
|
2003-01-22 15:19:07 +00:00
|
|
|
|
|
|
|
$FreeBSD$
|