operator
C operator precedence and order of evaluation
- Provided by: manpages (Version: 6.17-1)
- Report a bug
C operator precedence and order of evaluation
This manual page lists C operators and their precedence in evaluation.
| Operator | Associativity | Notes |
| () _Generic() | - | [1] |
| [] () . -> ++ -- (type){} | left to right | [2] [3] |
| ++ -- & * + - ~ ! _Countof sizeof alignof _Maxof _Minof | right to left | [4] |
| (type) | 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 |
The following notes provide further information to the above table: