Appendix B Operator Precedence and Associativity

The operators are shown in order of precedence, from highest to lowest.

Operator Associativity
:: unary: left to right
binary: right to left
() [] -> . left to right
++ – + - ! ~ (type) * & sizeof 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