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 most powerful coding language?

1001


How can you tell what shell you are running on unix system?

1060


What are the two types of polymorphism?

1062


Which is the best c++ software?

1048


Define private, protected and public access control.

1067


What are the important differences between c++ and java?

1091


Where Malloc(), Calloc(), and realloc() does get memory?

999


What is pointer -to-members in C++? Give their syntax?

986


What character terminates all character array strings a) b) . c) END

1210


Is c++ still in demand?

1109


What are c++ tokens?

1000


What is data types c++?

958


What is implicit pointer in c++?

1036


What is the output of the following program? Why?

1088


Can we make any program in c++ without using any header file and what is the shortest program in c++.

1074