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


Please Help Members By Posting Answers For Below Questions

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?

2990


is there any addin for remedy user application

1837


what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?

1467


Differences between quicktest professional (qtp) and winrunner?

741


How do I get the QTP scripts result in xml format by using vb script function?

1870






how to acess a test in RSA?

1768


What are test settings and global settings?

657


What are the automation metrice in your project?

1835


How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks

1655


What is meant by Output Value in UFT?

642


Explain the Different types of QTP test assets and their extensions?

705


How to use Environment parameterization? Explain with an example.

1570


How to customize checkpoints with parameters?

3107


Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma

1377


Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?

1576