Swap two number using bit manupulation | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Swap two number using bit manupulation

you need to swap two numbers using operators like or ,and ,xor etc

19th Apr 2017, 8:44 PM
Gaurang Goel
Gaurang Goel - avatar
2 Antworten
0
main logic a=a^b; b=a^b; a=a^b;
19th Apr 2017, 8:45 PM
Gaurang Goel
Gaurang Goel - avatar