Arithmetic and Data Types - Operator Precedences

Chapter chap4 section 14

To finish off this rather long chapter here is a list, in precedence order, of all the operators we have seen so far.

OperatorsAssociativity
() ++(postfix) --(postfix)Left to Right
++(prefix) --(prefix) ~ (type) +(unary) -(unary)Right to Left
* / %Left to Right
+ -Left to Right
<< >>Left to Right
&Left to Right
^Left to Right
|Left to Right
= += *= <<= >>= /= %= -= &= |= ^=Right to Left