![.NET Core 2.0 By Example](https://wfqqreader-1252317822.image.myqcloud.com/cover/114/36700114/b_36700114.jpg)
上QQ阅读APP看书,第一时间看更新
Bitwise operators
Bitwise operators work on bits and perform bit-by-bit operations. The truth tables for &&& (bitwise AND), ||| (bitwise OR), and ^^^ (bitwise exclusive OR) are shown as follows. In the following table, the first variable is X and the second variable is Y:
![](https://epubservercos.yuewen.com/6A2970/19470396201580706/epubprivate/OEBPS/Images/004.jpg?sign=1738918290-tHRfyPfcwfNsXj1eZ8BRtOQpjw8yt5bY-0-e7067728894f7cd43308aad35a073562)
It also supports ~~~(Unary, effect of flipping bits) , <<< (left shift operator), and >>>(right shift operator).