federico-busato / Modern-CPP-Programming

Modern C++ Programming Course (C++03/11/14/17/20/23/26)

Home Page:https://federico-busato.github.io/Modern-CPP-Programming/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comparison operator have higher precedence than Bitwise!!!

indraneel-mondal opened this issue · comments

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 >.

thanks, @indraneel-mondal. You are right, good catch.