how is a+b=a^b+2*(a&b)

1 Like

You can think of the way you do binary addition.

Yes i understood it intuitively, looking for a mathematical one

You can refer to this.

1 Like