11: generalizations and precendence


#1

How are the rules in the precedence section applied to
(3 >= 3 && !(true || true)) ?

They say the order is: ! then && then ||

However this order doesn’t make sense because (true || true) must be evaluated first because they are in brackets.

I get that the answer is false and it makes sense if the brackets are evaluated first but do the brackets always override the precedence order ! then && then || ?


#2

Parentheses always take priority, just like as in math.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.