Bitwise Interview Question

Swap the two variables using divide or multiplication operator

Interview Answer

Anonymous

Feb 19, 2019

#include using namespace std; int main() { int x = 10, y = 5; // Code to swap 'x' and 'y' x = x* y; y = x / y; x = x / y; cout<<"After Swapping: x ="<