Explaination of Swap 2 values using XOR operation
When i do the 1st step when we XOR the values its takes both values input in the form of 0 and 1 and takes advantage of binary’s compliment attitude i.e. !0 => 1 or !1 => 0
When i do the 1st step when we XOR the values its takes both values input in the form of 0 and 1 and takes advantage of binary’s compliment attitude i.e. !0 => 1 or !1 => 0