Order of Operand Evaluation

The priority order of operators and their associativity is listed in the following listing.

Listing: Operator precedence
Operators                           Associativity () [] -> .                         left to right 
! ~ ++ -- + - * & (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 

Unary +,- and * have higher precedence than the binary forms.