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 basic difference between C and C++?

1227


How do you invoke a base member function from a derived class in which you’ve overridden that function?

1166


What is a down cast?

1171


Is string an object in c++?

1209


Explain "const" reference arguments in function?

1105


Differentiate between a copy constructor and an overloaded assignment operator.

1136


What is a binary file? List the merits and demerits of the binary file usagein C++.

1368


What are the advantages of using typedef in a program?

1178


What is general format for a prototype?

1090


Why c++ is faster than java?

1105


What is the precedence when there is a global variable and a local variable in the program with the same name?

1171


What is the disadvantage of using a macro?

1173


Is java easier than c++?

1072


What is class definition in c++ ?

1140


What are guid?

1302