Operator
Precedence and Associativity
|
Operators |
Associativity |
|
() [] -> . ++ (postfix) -- (postfix) |
Left
to right |
|
++ (prefix) -- (prefix) ! ~ sizeof (type) + (unary) - (unary) & (address) * (indirection) |
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 |
|
?: |
Right
to left |
|
= += -= *= /= %= &= ^= |= <<= >>= |
Right
to left |
|
, |
Left
to right |