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 is implicit pointer in c++?

1072


Why #include is used?

1059


When should overload new operator on a global basis or a class basis?

1077


What is binary object model?

1020


What is flush programming?

1009


How many types of modularization are there in c++?

1077


What is low level language in simple words?

1030


You run a shell on unix system. How would you tell which shell are you running?

1164


What are proxy objects in c++?

1174


Which is better c++ or java?

976


What is data structure in c++?

1142


What is meant by entry controlled loop?

1109


How can I disable the "echo" feature?

1161


Are c and c++ similar?

1046


How do you declare a set in c++?

947