Bitwise Operator Description Simple Example
& Bitwise OR Operator 10 & 7 = 2
| Bitwise XOR Operator 10 | 7 = 15
^ Bitwise AND Operator 10 ^ 7 = 13
~ Bitwise Ones’ Compliment Operator ~10 = -11
<< Bitwise Left Shift operator 10<<2 = 40
>> Bitwise Right Shift Operator 10>>1 = 5
更新于 阅读次数