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

X=10,Y=20 you need to swap the numbers without using a
third variable?

Answer Posted / sandip patil

If X=10 & Y=20
then for swapping just go with following

Y=Y-X i.e. Y=20-10=10 here value of Y=10
X=X+Y i.e. X=10+10=20 Here value of X=20

It is swap

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use conditional loops in qtp ?

990


How you can decide which type of object repository you have to use?

1114


How to call a test from another test?

1299


what is the latest version of QTP? Main difference between 9.2 and 10 version

2053


What is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz

1935


What are the types of object repositories? Which one is you are using?

1116


How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.

1872


Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)

2066


what could go wrong with test automation?

2004


Explain Descriptive Programming Types with Examples?

1430


how can we preform retesting(DATA driven test) using function please gine the code for loginpage

2808


What is quicktest professional?

967


How to handle dynamic objects in quicktest professional (qtp)?

901


Can any one tell me how to write a script for selecting open option in File menu of A word document.here you have to add objects to OR.try like that and give me the ans.i asked this question to so many but no one knows.if any one know the answer plz let me know

1823


how to find that tools work well with ur existing system?

1860