|
Table 2
Precedence table for C
|
|
Operators
|
Associatively
|
|
( ) [ ] -> . ++ --(post)
|
Left to right
|
|
! ~ (pre)++ -- + - * & (type) sizeof
|
Right 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
|
|
*Reversed associate property
|
|
Back
|
|
|
|
|
Ready to take that job and shove it?
|
|