Computer Science Canada Is this possible? XOR question |
Author: | Prads [ Wed Feb 02, 2011 11:18 am ] |
Post subject: | Is this possible? XOR question |
I was wondering if, let's say, it's given like this, a XOR b = 56 b XOR c = 22 a XOR c = 46 can we find the values of a, b and c? If yes could you please tell me how. Thanks! |
Author: | Insectoid [ Wed Feb 02, 2011 12:30 pm ] |
Post subject: | RE:Is this possible? XOR question |
Set a, b, or c to zero and see what happens. Note that 56 XOR 22 = 46, 56 XOR 46 = 22, etc. |
Author: | Prads [ Wed Feb 02, 2011 9:32 pm ] |
Post subject: | RE:Is this possible? XOR question |
That gives me whole lot of possible combination. |
Author: | Insectoid [ Wed Feb 02, 2011 9:38 pm ] |
Post subject: | RE:Is this possible? XOR question |
There are a lot of answers. |