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

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;

Do you know the best way to do this in your language ?
New implementation...

Idiom created by

Related idioms