Precedence | Operation | Associativity |
---|---|---|
1 | a[..] f(..) . -> | left to right |
2* | postfix ++ postfix -- | left to right |
3* |
prefix ++ prefix -- sizeof ~ ! unary + unary - unary & unary * |
right to left |
4* | casts | right to left |
5 | * / % | left to right |
6 | binary + binary - | left to right |
7 | << >> | left to right |
8 | < > <= >= | left to right |
9 | == != | left to right |
10 | binary & | left to right |
11 | binary ^ | left to right |
12 | binary | | left to right |
13+ | && | left to right |
14+ | || | left to right |
15 | ? : | right to left |
16 |
= += -= *= /= %= <<= >>= &= ^= |= |
right to left |
17 | , | left to right |