Introduction When we learn about swapping of 2 variables , we find 2 common methods -1. Using a temporary variable2. Using the xor trick #include <iostream> using namespace std; void swapWithTemp(int &x, int &y){ int temp = x; x = y; y =...
divyanshblogs.hashnode.dev2 min readNo responses yet.