The following table lists the operator precedence rules for ANSI - C operators.
| Operator | Description | Associativity |
|---|---|---|
| () | Parenthesis | Right to Left |
| ~ + - | One's complement Unary Plus Unary minus | Left to Right |
| * / % | Integer multiplication Integer division Integer modulo | Left to Right |
| + - | Integer addition Integer subtraction | Left to Right |
| << >> | Shift Left Shift Right | Left to Right |
| < <= > >= | Less than Less or equal to Greater than Greater or equal to | Left to Right |
| =, == !=, <> | Equal to Not Equal to | Left to Right |
| & | Bitwise AND | Left to Right |
| ^ | Bitwise Exclusive OR | Left to Right |
| | | Bitwise OR | Left to Right |