Hierarchy of Arithmetic and Logical Operators

Operator Associativity
:: Left to right
() [] -> . Left to right
++ -- ~ ! + - & * new delete (cast) 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




Back to Previous Page

Document:
Local Date:
Last Modified On: