It is mainly implemented in error detection and correction.
It is used for performing modulo arithmetic.
AND and NOT; OR and NOT; EQU and NOT; XOR
The bitwise XOR operator is ^, or shift 6. The bitwise XOR assignment operator is ^=.
a XOR b is a^b in C language
If you're allowed to prove this the easy way (by showing you can use XOR and AND to create the set of AND, OR, and NOT), this is pretty straightforward. x AND y = x AND y (of course) x OR y = (x XOR y) XOR (x AND y) NOT x = x XOR 1 Also, (x AND y) XOR 1 is equivalent to x NAND y, which is a universal gate.
its not
AND and NOT; OR and NOT; EQU and NOT; XOR
It can be implemented very easily .... Suppose the Binary word is X7X6X5.... X0 then the corresponding Gray code is G7G6G5....G0 where G7=X7 G6=X7 XOR X6 G5=X6 XOR X5 ..... G0=X1 XOR X0 Now implement the above algorithm
xor
The bitwise XOR operator is ^, or shift 6. The bitwise XOR assignment operator is ^=.
a XOR b is a^b in C language
yes... xor is derived gate from primary gates
If you're allowed to prove this the easy way (by showing you can use XOR and AND to create the set of AND, OR, and NOT), this is pretty straightforward. x AND y = x AND y (of course) x OR y = (x XOR y) XOR (x AND y) NOT x = x XOR 1 Also, (x AND y) XOR 1 is equivalent to x NAND y, which is a universal gate.
xor and xnor gates are derived from not gate
Not sure about the comparator. XOR is what I came up with, so we have two XORs. This is the "exclusive OR" logic function. Build one out of standard resistors and transistors, or buy an IC with the XOR function already implemented, or use four two-input NAND gates. At least that's the way we did it in the 1960s. In analog circuits, a comparator.
3*xor- two input
We know the formula G3=B3 G2=B2 XOR B3 G1=B1 XOR B2 G0=B0 XOR B1
a := a XOR b b := a XOR b a := a XOR b it works, but never use it in real programs do you know why its not used in real program??