14.2. Priorität der Operatoren
| Priorität | Operatoren | Assoziativität | |||
|---|---|---|---|---|---|
| 1 | ( ) | [ ] | -> | . | links nach rechts |
| 2 | ++ | -- | + (Vorzeichen) | - (Vorzeichen) | rechts nach links |
| (type cast) | ! | ~ (bitweise Negation) | * (Inhalts-operator) | rechts nach links | |
| & (Adreß-operator) | sizeof | rechts nach links | |||
| 3 | * (Multiplikation) | / | % | links nach rechts | |
| 4 | + (Addition) | - (Subtraktion) | links nach rechts | ||
| 5 | << (Shift left) | >> (Shift right) | links nach rechts | ||
| 6 | < | <= | > | >= | links nach rechts |
| 7 | == | != | links nach rechts | ||
| 8 | & (bitwise AND) | links nach rechts | |||
| 9 | ^ (bitwise XOR) | links nach rechts | |||
| 10 | | (bitwise OR) | links nach rechts | |||
| 11 | && | links nach rechts | |||
| 12 | || | links nach rechts | |||
| 13 | ?: | rechts nach links | |||
| 14 | = | += | -= | *= | rechts nach links |
| /= | %= | &= | ^= | rechts nach links | |
| |= | <<= | >>= | rechts nach links | ||
| 15 | , | links nach rechts |