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 | Mac OS X 12 |