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

a=10;
b=20;
b=a+b-(a=b);

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between interpreters and compilers?

1142


Describe linked list using C++ with an example.

1054


Carry out conversion of one object of user-defined type to another?

1015


How to access a variable of the structure?

1043


Differences between private, protected and public and give examples.

1025


Do you know about C++ 11 standard?

1055


What is pointer to array in c++?

1112


What are c++ tokens?

1020


What is null pointer and void pointer?

1034


Which software is used for c++ programming?

1057


Can c++ do everything c can?

1027


Write about the retrieval of n number of objects during the process of delete[]p?

993


What are dynamic type checking?

1011


What is stl containers in c++?

1022


What is the basic difference between C and C++?

1126