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

a=10;
b=20;
b=a+b-(a=b);

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a baller and a reference in C++?

1132


What is #include iostream in c++?

1075


What is a template in c++?

1874


Is arr and &arr are same expression for an array?

1068


What is the difference between global variables and static varables?

1152


How do you establish a has-a relationship?

1125


What is ios class in c++?

1130


Write about the access privileges in c++ and also mention about its default access level?

1078


How do I make turbo c++ full screen?

1074


If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?

1049


What is atoi in c++?

1083


What is the use of main function in c++?

985


What is flush programming?

1028


What is the function to call to turn an ascii string into a long?

1071


What it is and how it might be called (2 methods).

1195