<< operator in C++?

前端 未结 3 621
遇见更好的自我
遇见更好的自我 2020-12-21 17:10

I am new to C++, what\'s the exact meaning for the << in statement below, Thanks.

if (Val & (0x0001 << 0))
{}
else
{}

3条回答
  •  醉话见心
    2020-12-21 17:39

    That is a bit shift operator.

    But when integers aren't involved, beware of an underlying overloaded operator.

提交回复
热议问题