Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
Select your favorite languages :
  • Or search :

Idiom #237 Xor integers

Assign to c the result of (a xor b)

c = a ^ b;
use Bitwise
c = a ^^^ b
c = ieor(a,b)
c := a ^ b
import "math/big"
c := new(big.Int)
c.Xor(a, b)
const c = a ^ b;
c := a xor b;
c = a ^ b
c = a ^ b
let c = a ^ b;

New implementation...
programming-idioms.org