Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - The binary number A in C language is 0010110/. If you want to XOR integer variables B and A, the upper four bits of A will be inverted and the lower four bits will remain unchanged.
The binary number A in C language is 0010110/. If you want to XOR integer variables B and A, the upper four bits of A will be inverted and the lower four bits will remain unchanged.
You just need to remember that the result of XOR operation is the same as 0, and the difference is 1:

a 00 10 1 10 1

b 1 1 1 10000 & lt; -So we can deduce that binary b is this value.

-

1 10 1 1 10 1