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
What is the descriptive programming?
Qtp has been installed on my pc but recently ON opening it is giving this error PLEASE REPLY IT IS URGENT IT WAS WORKKING FINE QTPRO.EX THE instruction at "0x7.. ...". referenced memory at "0000....The memory could not be read... Awaiting QTP XPERTS REPly URGENT
i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.
How will you declare a variable in qtp?
can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.
What is use of object spy?
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
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 meant by a Check Point in UFT? Also, explain the applicable Check Points.
What is throw Object?
i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?
How do you synchronization point through DP?
What are the key points to create a framework in QTP for oracle forms?
what is the structure for the data driven framework
how to test Web application using QTP software