5737b690dc
. for /usr/share/misc/style, NetBSD coding style . and for indent.pro (style-compatible indent(1) indenting profile)
19 lines
571 B
Text
19 lines
571 B
Text
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
|