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...

Hi All,
I am new to programming and want to know how can i write a
code to take input of 2 numbers from user and swap it
without using a temp variable?

Answer Posted / gopi

a=A+b;
b=a-b;
a=a-b;

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the different types of qualifier in java?

2318


How do you achieve runtime polymorphism?

1097


How do you achieve polymorphism?

1135


Whats oop mean?

1099


What is abstraction example?

1158


Why we use classes in oop?

1097


What is abstraction encapsulation?

1199


What is persistence in oop?

1206


What is variable example?

1091


Is html an oop?

1125


What is difference between oop and pop?

1237


What is interface? When and where is it used?

2208


when to use 'mutable' keyword and when to use 'const cast' in c++

2218


What are different oops concepts?

1113


What is difference between multiple inheritance and multilevel inheritance?

1195