m1 = 001, m2=101 How can I calculate Bitwise XOR between m1 and m2?

37 Views Asked by At

m1 = 001, m2=101 How can I calculate Bitwise XOR between m1 and m2?

Could you check if my solution is correct or not? please tell me your opinions.

m1 = 001 => in 8bit(8byte?) anyway, I can express it 0000 0001

m2 = 101 => same way as m1, I can express it 0000 0101

0000 0001 0000 0101

Same part will be 0, Different part will be 1

so, the answer is

100(0000 0100)

0

There are 0 best solutions below