1) algebraic
2) relational
3) logical
From this, bitwise & and | are algebraic, so they should have higher priority than relationals.
One problem is !, which as a logical operator should have much lower priority.
Another problem is ==, which could be interpreted as both relational (when used on integers) or logical when used on booleans).
1) algebraic
2) relational
3) logical
From this, bitwise & and | are algebraic, so they should have higher priority than relationals.
One problem is !, which as a logical operator should have much lower priority.
Another problem is ==, which could be interpreted as both relational (when used on integers) or logical when used on booleans).