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 are void pointers in c?

969


How do I use void main?

1056


What is the general form of function in c?

978


How can I read in an object file and jump to locations in it?

992


Is anything faster than c?

971


What is volatile c?

961


Is c compiled or interpreted?

1131


Differentiate between functions getch() and getche().

990


How does placing some code lines between the comment symbol help in debugging the code?

944


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

1031


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1631


What are the advantages of using macro in c language?

1072


What is a void * in c?

1023


What is realloc in c?

1021


What is the right type to use for boolean values in c? Is there a standard type?

971