Home Bitwise_operator
Post
Cancel

Bitwise_operator

Bitwise Operator

Not ~

0和1互换

\[~(~x) = x\]

Note: 计算中,所有正数最高位都是1,因此计算中正数的非运算都是

And &

有0则0

Or |

有1则1

XOR ^

同0异1

This post is licensed under CC BY 4.0 by the author.