Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Erlang

Idiom #237 Xor integers

Assign to c the result of (a xor b)

C = A bxor B
int c = a ^ b;

New implementation...
< >
programming-idioms.org