Operation of and, or, XOR

The two data involved in the operation are "XOR" according to binary bits. Operation rules: 0 & 0 = 0; 0&1=1; 1&0=1; 1&1=0; That is, if the two corresponding bits of the two objects participating in the operation are "different" (different values), the bit result is 1, otherwise it is 0. For example, 9 ^ 5 can be written as the following formula: 00001001 ^ 00000101 = 00001100 (decimal 12). It can be seen that 9 ^ 5 = 12. Learn from: https://www.cnblogs.com/wisdom-jie/p/7732940.html

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>