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
How to use conditional loops in qtp ?
How you can decide which type of object repository you have to use?
How to call a test from another test?
what is the latest version of QTP? Main difference between 9.2 and 10 version
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
What are the types of object repositories? Which one is you are using?
How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.
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)
what could go wrong with test automation?
Explain Descriptive Programming Types with Examples?
how can we preform retesting(DATA driven test) using function please gine the code for loginpage
What is quicktest professional?
How to handle dynamic objects in quicktest professional (qtp)?
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
how to find that tools work well with ur existing system?