Reference

operator(7)

C and C++ operator precedence and order of evaluation

NAME

operator – C and C++ operator precedence and order of evaluation

DESCRIPTION

OperatorAssociativity
---------------------
() [] -> .left to right
! ~ ++ -- - (type) * & sizeof new deleteright 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
||left to right
?:right to left
= += -= *= /= %= <<= >>= &= ^= |= throwright to left
?: (C++, third operand)right to left
,left to right

FILES

/usr/share/misc/operator

History