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 / sachin patil

a = 5;
b = 10;
a = a+b;
b = a-b;
a = a-b;

Is This Answer Correct ?    55 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are manipulators used for?

1068


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

1112


What is encapsulation in c++ with example?

981


Write a struct time where integer m, h, s are its members?

937


Why do we use vector in c++?

1034


Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes

1048


Is c++ the hardest programming language?

1092


Explain about Virtual Function in C++?

988


What is a container class?

1084


why is iostream::eof inside a loop condition considered wrong?

1026


what is scupper?

2350


Why do we use constructor?

1011


Is facebook written in c++?

973


What does the ios::ate argument do?

1146


What is pure virtual function?

1040