logic - C: XNOR / Exclusive-Nor gate? - Stack Overflow
I am trying to find the most effective way of writing a XNOR gate in C. if(VAL1 XNOR VAL2) { BLOCK; } Any suggestions? Thanks. ... What do you mean by "most effective"? Tomas' answer assumes that VAL1 and VAL2 are 0 and 1, rather than the C definition of ...