How to swap two numbers
Anonymous
#include #include using namespace std; #define swapping(a,b)do{a ^= b; b^=a;a^=b;}while(0) int main() { int a =10; int b =20; std::cout one way using algorithm swapping(a,b); // another way using macro in bitwise manner std::cout<<"a : "<
Check out your Company Bowl for anonymous work chats.