Can XOR of two integers go out of bounds?
XOR will never go out of bounds because it combines bits and doesn’t create new bits where no bits were set before. The result 5 is correct. Look at the binary representation of your value and the XOR result 10 00001010 20 00010100 30 00011110 5 00000101 20 00010100 10 00001010 30 00011110 ————– 00000101 … Read more