Question: Please explain this bit-wise operation line by line * /* * bitxor - x^y using only ~ and & Example: bitXor(4, 5) = 1 Legal
Please explain this bit-wise operation line by line

* /* * bitxor - x^y using only ~ and & Example: bitXor(4, 5) = 1 Legal ops: Max ops: 14 Rating: 1 */ * int bitxor(int x, int y) { int A = ~X & y ; int B = x & ry: return ~(~(~x & y)& ~(x & ~y)); } /* * isTmax returns 1 if x is the maximum, two's complement number, * and 0 otherwise Legal ops: ! ~&^| + Max ops: 10 Rating: 1 */ int isTmax(int x) { X+1; return !(((~(y))^x)|(!(~))); } * int y =
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
