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 / dd

a=1
b=2
a=a+(b-a)
b=(a+b)-b

Is This Answer Correct ?    12 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do we have to use initialization list in spite of the assignment in constructors?

1051


What is input operator in c++?

1082


Can you please explain the difference between overloading and overriding?

1148


What is the basic structure of c++ program?

1153


What is object in c++ example?

1165


What is the main use of c++?

1166


Explain dangling pointer.

1188


Do you know what is overriding?

1296


Do class method definitions?

1094


Describe exception handling concept with an example?

1097


How should a contructor handle a failure?

1235


What is long in c++?

1300


Is c++ low level?

1073


What is the use of c++ programming language in real life?

1095


What is iterator in c++?

1165