Lowest price ever! Learn Generative AI for 48% less!
Get my discount0
Swap two number using bit manupulation
you need to swap two numbers using operators like or ,and ,xor etc
2 Answers
0
main logic
a=a^b;
b=a^b;
a=a^b;
you need to swap two numbers using operators like or ,and ,xor etc