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

swapping program does not use third variable

Answer Posted / jayabalan.s

void main()
{
int a,b;//example a=10,b=12;
a=a+b;//a=22
b=a-b;//b=10;
a=a-b;//a=12
}

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism and why is it important?

1043


What is overloading and its types?

1180


What is abstract class in oops?

1026


What are the data types in oop?

1105


What are different oops concepts?

1062


What is abstraction encapsulation?

1128


Can you explain polymorphism?

1116


What is cohesion in oop?

1063


What is object-oriented programming? Webopedia definition

1267


can inline function declare in private part of class?

4417


Which method cannot be overridden?

1101


c++ program to swap the objects of two different classes

2422


What does oop mean in snapchat?

1243


What are the three parts of a simple empty class?

2056


How Do you Code Composition and Aggregation in C++ ?

25485