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

Do we have any certifications for ETL Testing ?

2245


Hi, i am looking job in perfomance testing using Loadrunner can any body help me a project in any domine plz(Usah) chs_29@rediffmail.com

2075


Why we have to do manual testing?

1711


tell me some major and minor defects in ur net banking project?

3640


Can anybody help i put the pharma and bank project in my resume, but i dont know what to tell about them, any body tell the where can i get the information about them,what i need to tell about these applications,please help me

2164


Write all combinations of test cases for calculater on + symbel

2281


whar are the contents in db testing test case template

2072


if yahoo ceo asks you to do performance testing for yahoo site, what are the inputs you ask from them?

2148


. Is any graph is used for code coverage analysis?

2627


what kind of testing have u done?

2017


can anybody tell me what is release process of company? release note?

1953


Usually customers won’t give all the requirements. How will you manage & collect all the necessary information?

1223


Which is the best book to ref. for design the test cases/scenario in manual testing,which gives detailed idea with all the strategies ?

6941


what are the risk factors in the project? what is the base for testplan and entry criteria ,exit criteria for test plan?

2459


Can anyone please tell in detail about the Rally tool and how a tester is going to use it.

2570