Hierarchy of Operators

Since we have now added the logical operators to the list of operators we know, it is time to review these operators and their priorities. Following figure summarizes the operators we have seen so far. The higher the position of an operator is in the table, higher is its priority.

Operators Type
! Logical NOT
* / % Arithmetic and modulus
+ – Arithmetic
< > <= >= Relational
== != Relational
&& Logical AND
|| Logical OR
= Assignment