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

What is the use of a ‘’ character?

1055


Explain how can I prevent another program from modifying part of a file that I am modifying?

1056


Can stdout be forced to print somewhere other than the screen?

1032


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

2032


Is using exit() the same as using return?

1286


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2105


What are the modifiers available in c programming language?

1190


Differentiate between functions getch() and getche().

1012


What are the different properties of variable number of arguments?

1126


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1927


Explain how can you restore a redirected standard stream?

1063


How pointers are declared?

925


Where is volatile variable stored?

1047


how to make a scientific calculater ?

2038


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

1015