Math, asked by ankushkhadka1866, 1 year ago

How to calculate xor of two decimal numbers?

Answers

Answered by praveen96
2
To find XOR of more than two numbers, represent all numbers in binary representation, add 0's before if necessary. Write them like this. To find each bit of XOR just calculate number of 1's in the corresponding bits. If it is even or zero then that XOR'ed bit is 0.
Answered by AditiHegde
0

XOR of two decimal numbers is given as follows.

XOR - Exclusive OR gate.

A gate with two or more inputs and a single output, with the results - if both the inputs of true or false the output will be false and in case of either of one result is true or false then the result is true.

OR

If the inputs are unequal, the output is true and if the inputs are equal, then the output is false.

The truth table for the xor gate is given as follows.

A  B          A  XOR B

0    1                1

0   0                0

1     1                0

1     0                1

Similar questions