What is the most elegant way to do the next stuff:
int i = oneOrZero; if (i == 0) { i = 1; } else { i = 0; }
You can assume that
Use bit xor
i ^= 1;