Question: what are xor gates used for?
Answer: Techopedia explains Exclusive OR Gate (XOR Gate) An exclusive OR gate is mainly used to build circuits that execute arithmetic operations and calculations, particularly adders and half-adders, as it can provide a "carry-bit" function.