In this tutorial, we will swap two numbers using XOR( ^ ) operator. Before solving the solution, let’s examine what is a bitwise XOR operator. A bitwise XOR compares corresponding bits of two operands and returns 1 if...
In this tutorial, we will swap two numbers using XOR( ^ ) operator. Before solving the solution, let’s examine what is a bitwise XOR operator. A bitwise XOR compares corresponding bits of two operands and returns 1 if...