C Precedence

Table 2-1. Precedence and Associativity of Operators

OperatorsAssociativity

() [] -> .left to right
! ~ ++ -- - (type) * & sizeofright 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
?:right to left
= += -= *= /= %= ^= |= <<= >>=right to left
,left to right

Back to ACME Labs.
email