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...

how to swap two numbers with out using temp variable

Answer Posted / kusum

if (a>b)
temp=a;
a=b;
b=temp;

Is This Answer Correct ?    0 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Will rust take over c++?

1036


Describe private, protected and public – the differences and give examples.

1146


What is difference between array and vector in c++?

992


What is an html tag?

1099


What are move semantics?

1105


What is std namespace in c++?

1142


What is flag in computer?

1016


Where do I find the current c or c++ standard documents?

1054


If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

1002


What are libraries in c++?

1031


What is the difference between an array and a list?

999


What is the difference between a template and a macro?

1019


Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort

1031


How much is c++ certification?

1018


What is meant by a delegate?

1053