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

Why is c++ a mid-level programming language?

1047


What are the differences between malloc() and calloc()?

1191


Can we use clrscr in c++?

1082


What is a dynamic binding in c++?

964


What is meant by entry controlled loop?

1128


Do the names of parameters have to agree in the prototype, definition, and call to the function?

1031


What do you mean by translation unit?

1099


Explain what are accessor methods?

1130


What new()is different from malloc()?

1117


How do I start a c++ project?

1086


What apps are written in c++?

1102


Incase of a function declaration, what is extern means?

975


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

1158


What are the 2 main types of data structures?

1128


What does ios :: app do in c++?

1042