These are the various ways to swap 2 variables
a) Using temporary Variable
b) Usnig some Arithmentic operation
c) Using bitwise XOR operation
Explain which operation is better and Why? What if we need to swap -ive as
well as floating point numbers also.
-- 
Regards,*
Aanchal Goyal*.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to