To finish off this rather long chapter here is a list, in precedence order, of all the operators we have seen so far.
| Operators | Associativity |
|---|---|
() ++(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 |