OPERATOR(7) | Miscellaneous Information Manual | OPERATOR(7) |
operator
— C
operator precedence and order of evaluation
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 |
June 9, 1993 | macOS 15.2 |