What is the simplest way to do a three-way exclusive OR?
In other words, I have three values, and I want a statement that evaluates to true IFF only one of
You could also try (in C):
!!a + !!b + !!c == 1