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

Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

848


Can a new be used in place of old mallocq? If yes, why?

1143


Describe protected access specifiers?

1291


Is overriding possible in c++?

1065


What is ifstream c++?

1079


Will rust take over c++?

1114


What does int * mean in c++?

1278


Do vectors start at 0?

1045


How to declare a pointer to an array of integers?

1186


What is the limitation of cin while taking input for character array?

2160


Can static member variables be private?

1241


What is the use of cmath in c++?

1120


Why should you learn c++?

1061


What is array in c++ example?

1165


What is called array?

1149