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

How do I get good at c++ programming?

1088


Differentiate between a copy constructor and an overloaded assignment operator.

1021


what is VOID?

1012


Describe linkages and types of linkages?

944


How one would use switch in a program?

1027


Why is c++ still popular?

989


What is virtual base class uses?

1246


Where and why do I have to put the "template" and "typename" keywords?

979


Program to check whether a word is a sub-string or not of a string typed

1979


What are single and multiple inheritances in c++?

1036


Where the memory to the static variables is allocated?

1005


What is the full name of logo?

1066


What is buffer and example?

942


List the advantages of inheritance.

1066


Differentiate between structure and class in c++.

1022