Logo

Programming-Idioms

  • D
  • C
  • Rust

Idiom #237 Xor integers

Assign to c the result of (a xor b)

let c = a ^ b;
int c = a ^ b;
(def c (bit-xor a b))

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