priority | operator(s) | description |
0 | , | argument seperation |
1 | = *= /= += -= <<= >>= &= |= ~= | assignment (with operation) |
2 | ?: | inline if |
3 | || | logical or |
4 | && | logical and |
5 | | | bitwise or |
6 | ^ | bitwise xor |
7 | & | bitwise and |
8 | = < > | comparators |
9 | < <= > >= | more comparators |
10 | << >> | bitshift |
11 | + - | addition, subtraction |
12 | * / % | multiplication, division, modulo |
13 | ++ -- ~ ! - + | pre in/decrement, complement, not, algebraic sign |
14 | ++ -- () | post in/decrement, function call |