Logo

Programming-Idioms

  • Fortran
  • Perl

Idiom #237 Xor integers

Assign to c the result of (a xor b)

my $c = $a ^ $b;
c = ieor(a,b)
int c = a ^ b;

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