Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a program to interchange two variables without using
the third variable?

Answer Posted / saravanan j (srm universi

you can apply it on any language?!

x = x xor y
y = x xor y
x = x xor y

* 1 year ago

Source(s):
Self Expierince

Is This Answer Correct ?    18 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c have enums?

1107


What are the functions to open and close the file in c language?

1041


What is use of #include in c?

1172


Apart from dennis ritchie who the other person who contributed in design of c language.

1406


Is it possible to execute code even after the program exits the main() function?

1345


Do you know the difference between malloc() and calloc() function?

1069


What is the difference between int main and void main?

1051


How can I make sure that my program is the only one accessing a file?

1280


What are categories used for in c?

1101


What is a pointer variable in c language?

1111


Can you please compare array with pointer?

1095


What are the disadvantages of a shell structure?

1355


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

1282


Explain what are bus errors, memory faults, and core dumps?

1283


Why is c platform dependent?

1095