The operators have a set order of precedence during evaluation. Items encapsulated in parenthesis are evaluated first and have the highest precedence. The following chart shows the order of precedence with the items at the top having highest precedence.
|!||Logical NOT. Bang.|
|++ —||Increment and decrement operators.|
|* / %||Multiplicative operators.|
|+ –||Additive operators.|
|<< >>||Shift operators.|
|< > <= >=||Inequality comparators.|
|== !=||Equality comparators|
17 * 5 + !(1+1) && 0
Evaluates to 0 (false).
Evaluates to 1 (true).
Same as (a<b)<c.