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

Can c++ do everything c can?

1002


Explain the concept of dynamic allocation of memory?

1043


What is conditions when using boolean operators?

1140


Can a function take variable length arguments, if yes, how?

959


what is pre-processor in C++?

1089


What is the use of c++ programming language in real life?

977


Which is not a valid keyword a) public b) protected c) guarded

1192


What is difference between rand () and srand ()?

1037


Explain Text Manipulation Routines?

1038


When there is a global variable and local variable with the same name, how will you access the global variable?

1045


What is the oldest programming language?

947


What is guard code in c++?

1109


What do you mean by “this” pointer?

1031


Can we change the basic meaning of an operator in c++?

1071


How does list r; differs from list r();?

1087