Comparison operator have higher precedence than Bitwise!!!
indraneel-mondal opened this issue · comments
Indraneel Mondal commented
In the operator precedence slide 1/2, it says
"Comparison operator have higher precedence than bitwise and logic operators"
But in the Operator Overview slide 1/3, bitwise operators are placed before relational operators. Also, in the Operator Precedence slide 2/2, a + b > 3 >> 4
gets interpreted as (a + b) > (3 >> 4)
. This can only happen if >>
had higher precedence than >
.
Federico commented
thanks, @indraneel-mondal. You are right, good catch.