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

When do you call copy constructors?

1197


What does count ++ do in c++?

1254


Can notepad ++ run c++?

1149


Is map sorted c++?

1050


What is the difference between delegation and implemented-in-terms-of?

1054


Explain polymorphism?

1117


Do the names of parameters have to agree in the prototype, definition, and call to the function?

1078


How java is different from c and c++?

1257


If a function doesn’t return a value, how do you declare the function?

1108


What is the need of a destructor?

1199


Why the usage of pointers in C++ is not recommended ?

1517


What is main function in c++ with example?

1302


Should you pass exceptions by value or by reference?

1182


Who invented turbo c++?

1114


List the advantages of inheritance.

1181