Type Of Operator | Operators | Associativity |
() [] . | Left to Right | |
Unary | ! ~ ++ — * & (type) sizeof()+ – | Right to left |
Arithmetic | * / % | Left to Right |
Arithmetic | + – | Left to Right |
Shift | << >> | Left to Right |
Comparison | < <= > >= | Left to Right |
Comparison | == != | Left to Right |
Bitwise | & | Left to Right |
Bitwise | ^ | Left to Right |
Bitwise | | | Left to Right |
Logical | && | Left to Right |
Logical | || | Left to Right |
Ternary | ?: | Right to left |
Assignment | = += -= *= /= %= &= ^= |=<<= >>= | Right to Left |
Comma | , | Left to Right |