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

Explain abstraction.

1122


What is the difference between a template and a macro?

1067


What are the stages in the development cycle?

1067


Which should be more useful: the protected and public virtuals?

1046


what is upcasting in C++?

1189


What are the various operations performed on stack?

1101


How java is different from c and c++?

1204


What is a buffer c++?

1065


Explain polymorphism?

1083


What are stacks? Give an example where they are useful.

1062


What is private inheritance?

1097


What is abstraction c++?

1014


Define a pointer to a data member of the type pointer to pointer?

992


How many types of comments are there in c++?

989


What is c++ flowchart?

1394