Explain how the bitwise XOR operator (^) works and provide an example.
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Explain how the bitwise XOR operator combines two integers bit by bit and work through an example in binary. Tests binary arithmetic, the algebraic properties of exclusive or, and how they support common tricks such as toggling bits and finding an unpaired value.