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 swap Two numbers without using temp variable.

Answer Posted / thangaraj

a=a^b;
b=b^a;
a=a^b;

Is This Answer Correct ?    13 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the benefit of using const for declaring constants?

1001


Is fortran still used in 2018?

1010


Give me the code of in-order recursive and non-recursive.

1344


Write a program to swap two numbers without using the third variable?

1036


What is pointer to pointer in c language?

1088


find the sum of two matrices and WAP for it.

1097


What is the difference between #include and #include 'file' ?

1022


What is the use of bitwise operator?

1091


Write a function that will take in a phone number and output all possible alphabetical combinations

1017


What is the process to generate random numbers in c programming language?

1142


What's the difference between constant char *p and char * constant p?

1122


What type is sizeof?

1021


What is the value of c?

1045


Write a program to swap two numbers without using third variable?

1270


Can we declare a function inside a function in c?

1011