The more interesting xor trick beyond interview trivia is the xor list:
https://en.wikipedia.org/wiki/XOR_linked_list