Skip to content
Advertisement

Tag: xor

What is inverse function to XOR?

There is XOR function in Java – a^b For exemple: 5^3 = 6 Can you tell me inverse function? If I have 6 and 3 can i get range of numbers which include number 5? Answer The inverse is XOR! If you have: You can get a or b back if you have the other value available: For example if

Advertisement