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 / kusum

if (a>b)
temp=a;
a=b;
b=temp;

Is This Answer Correct ?    0 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the protected keyword used for?

1118


What is a dynamic binding in c++?

970


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1004


Is c better than c++?

1085


What do manipulators do?

1025


What are friend functions in C++?

1078


What is srand c++?

1124


What is atoi?

984


What is the full form of ios?

1083


Name the implicit member functions of a class.

1093


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

1007


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

1056


What is the difference between a declaration and a definition?

1133


What is the use of setfill in c++?

1088


How do you flush std cout?

1113