swap two no without using third variable

Answer Posted / rivers

ill just write the logic here

a= a xor b
b= b xor a
a= a xor b

Take an example and check for yourself ,it works!

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a script to delete all the files in a folder except one desired file.

935


how exactly is the lngColour used?

1794


create a .dll component operation and use created component in another project. required methods events and properties. connect, add,search,data report

2096