---
name: "operator"
section: "7"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["linux", "freebsd", "openbsd", "macos"]
url: "https://new.carta.tech/operator"
---

# operator(7)

C operator precedence and associativity

## NAME

**operator** – C operator precedence and associativity

## DESCRIPTION

| | |
| --- | --- |
| **Operator** | **Associativity** |
| () \[\] -\> . | left to right |
| ! ~ ++ -- - (type) \* & sizeof | 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 |
