X=10,Y=20 you need to swap the numbers without using a
third variable?
Answer Posted / venki
x=10 and y=20
x=x+y
=>x=10+20=30
=>x=30
y=x-y
=>y=30-20=10
=>y=10 ----->@1
x=x-y
=>x=30-10=20
=>x=20 ----->@2
now x and y values has been swaped
see @1 and @2
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",
How do you capture tooltip using QTP?
What are the challenges u faced in testing with crm domain? How u overcome with?
Hi All, How to get repeated word in string . Thanks Balaji
In qtp is it possible to check broken links of a page?
How many types of parameters are available in quicktest professional (qtp)?
I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?
What is meant by a Check Point in UFT? Also, explain the applicable Check Points.
How to suppress warnings from the test results page?
hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?
How do you perform Regreession Testing?
Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers
what is the difference between data driver & data driven and driver script?
when will you do debug your script? and explain that process?
To which environments does quicktest professional (qtp) supports?