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

swap 2 variables without using 3 rd variable???

Answer Posted / guest

Ex:
1.
A=20,B=10
A=A-B=20-10=10
B=A+B=10+10=20
A=B-A=20-10=10

2.
A=6,B=4
A=A-B=6-4=2
B=A+B=2+4=6
A=B-A=6-2=4

The above logic works if A>B. If B>A:

B=6, A=4
B=B-A=6-4=2
A=A+B=4+2=6
B=A-B=6-2=4

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi this is satish can some one help me out by sending the maxium notes on client sesrver ,web server and company architechture project hirearchy and company hirearchy i will happy to recive the answers as early as possible

2201


What are the bugs we cannot find in black box?

1192


What is PBX Testing & What is Test coverage?

11171


Explain the components of a test plan?

1140


There is an opening in our organization Sierra Atlantic, Hyderabad. All Manual test engineers with 2-3 years of experience can forward your resumes to mah_cs82@yahoo.com before May 01, 2008. (Only manual testers) with a covering letter, current CTC and Expected CTC.

2117


To specify the test artifacts involved in testing.

2070


When we use integration testing for any new system so why we required system testing.

2012


could anyone explain application testing in sequence order i don't have any experience in that

1991


Explain what is exhaustive testing?

1309


How do you scope out the size of the testing effort?

2360


There are some features to improve the performance of a Product. What are those factors?

2011


In what situation would you want to parameterize a text verification check?

2152


what is Test management fundamental?

2265


Why Equivalence Partitioning is called equivalence or what is the significance of equivalence term in ECP?

2127


What is bottom-up approach?

1089