New course! Every coder should learn Generative AI!
Try a free lesson0
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