Left shift operation
2 << 2; find the value of i?
//结果等于左操作数乘上2的右操作数次方,于是结果是8
2*2²=8
Right shift operator
64 evaluates the number 2 >>
//结果等于左操作数除以右操作数次方,结果为16
64/(2²)=16
Left shift operation
2 << 2; find the value of i?
//结果等于左操作数乘上2的右操作数次方,于是结果是8
2*2²=8
Right shift operator
64 evaluates the number 2 >>
//结果等于左操作数除以右操作数次方,结果为16
64/(2²)=16