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

What is this pointer in c++?

1418


Where do I find the current c or c++ standard documents?

1105


Is c++ free?

1115


Why do you use the namespace feature?

1104


What is the difference between the compiler and the preprocessor?

1133


What is the use of "new" operator?

1140


What is exception handling? Does c++ support exception handling?

1043


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 a pointer with example?

1273


Comment on local and global scope of a variable.

1176


What is encapsulation in C++? Give an example.

1112


Which c++ compiler is best?

1168


Write about the scope resolution operator?

1043


What gives the current position of the put pointer?

1008


Difference between an inspector and a mutator

1350