...a 1, but not both. In other words, it returns a 0 if both operands are 0 or both operands are 1.
The XOR operator is often used to perform logical operations on bits. For example, the following code will set the value of `result` to 1 if either `a` or `b` is 1, but not both:
```c++
int a =...