operator(7)

operator7

C operator precedence and associativity

Overview

OperatorAssociativity
() [] -> .left to right
! ~ ++ -- - (type) * & sizeofright 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

Releases

55 releases since OpenBSD 2.7; the text changed 8 times.

  1. 2.7–3.3
  2. 3.4–3.5
  3. 3.6–4.0
  4. 4.1
  5. 4.2–4.8
  6. 4.9–5.0
  7. 5.1–6.1
  8. 6.2–6.5
  9. 6.6–8.0

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.