Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - 7 If the values of integer variables X and Y are equal and not zero, the expression with the result of 0 in the following options is-.
7 If the values of integer variables X and Y are equal and not zero, the expression with the result of 0 in the following options is-.
y C x & ampy·d·x^y

Refers to a binary bit operation.

That is, you need to change x.y to binary first.

For example, 5 should be changed to 1 10.

B x|y represents or equals 0.

China x & ampy represents union, which is equivalent to 1.

D x^y means exclusive or.

... too much. I stole a lazy haha ~

Operator meaning function

& Bitwise sum If both corresponding binary bits are 1, the resulting value of this bit is1; Otherwise, it is 0.

As long as the bitwise or one of the two corresponding binary bits is 1, the resulting value of this bit is 1.

∧ Bitwise XOR If the two symbols involved in the operation are the same, the result is 0 (false) and the result is 1 (true).

~ inversion ~ is a meta operator, which is used to invert a binary number bitwise, that is, change 0 to 1 and 1 to 0.

The < < left shift and left shift operators are used to shift all binary bits of a number by n bits to the left and by 0 bits to the right.

> > Shift to the right means to shift each binary bit of A to the right by n bits, and the lower bits on the right are discarded. For unsigned numbers, the high bits are supplemented with 0.