C/C++ Operator Precedence Chart

Prefix: #expr
Suffix: expr#
Left-associative: expr#expr#expr = (expr#expr)#expr
Right-associative: expr#expr#expr = expr#(expr#expr)

(expr) [expr] . -> ++ --
* & + - ! ~ ++ -- (type) sizeof
* / %
+ -
<< >>
< > <= >=
== !=
&
^
|
&&
||
?expr:
= += -= *= /= %= <<= >>= &= ^= |=
,
The comments section is closed