From highest to lowest
precedence.
::
. ->
()
++ --
++ --
^ !
+ -
& *
()
.* ->*
* / %
+ -
<< >>
< <= > >=
== !=
&
^
|
&&
||
?:
= *= /= %=
+= -= <<= >>=
&= |= ^=
throw
,
Or, in plain
English:
- scope resolution
- member selection, subscripting, function calls, postfix increment/decrement
- prefix increment/decrement, complement, and, not, unary plus/minus, address of, dereference, casting, new, new, delete, delete, sizeof, sizeof()
- member selection for pointer
- multiply, divide, modulus
- add, subtract
- shift
- relational inequality
- equality, inequality
- bitwise AND
- bitwise XOR
- bitwise OR
- logical AND
- logical OR
- conditional
- assignment
- throw
- comma