Expressions can be combined using operators. Each operator as a precedence priority. Here is the list of those expression's priority.
These operators can do some logical comparison between other expressions:
or, ||
and, &&
The and operator has more priority than the or, thus in the example above, false and true is evaluated first.
=, ==, !=, <, >
<, <=, >, >=
+, -
*, /, %
& (bitwise and), | (bitwise or), ^(bitwise xor), << (left shift), >>(right shift)
2 >> 3
Unary
!, not, -, ~ (bitwise not)
(, )
2β(3+2)2 * ( 3 +2)2β(3+2)
Last updated 12 days ago
Was this helpful?