operator(7)

operator7

C operator precedence and order of evaluation

Overview

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
= += -= etc. right to left
, left to right

Files

/usr/share/misc/operator

Releases

163 releases since Mac OS X 10.0; the text changed 1 time.

  1. 10.0–15.6
  2. 26.0–26.5

From files 974.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.