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 acess a test in RSA?

1663


how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page

1822


How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

3571


how to disable the pop ups through QTP using a script

1720


how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer

1440






how to idetfy which test cases are automated?who will deside that plz tell me

1531


Hi All, I need code for how to execute qtp scripts from excell sheet

1455


Can anybody post some real time scenario in qtp? please its very urgent.

1799


how do i know how to use tools

1441


What is the differences between image check point and bit map check point?

579


What is the difference between Keyword Driven test and Data Driven test?

1769


what is stepin & stepout?

1416


Some time when i wanna learn the object i face issue like i am not able learn the object in proper manner... eg:for text bo on web page it should learn as webedit but some times it reads as winobject:internetexpoler-server, because of this i have to uninstall the qtp and re-install it again when i do this it reads the object perfectly.....plz suggest the soln

1389


I am Facing Issues with learing datepicker 1)when i first learn datepicker as current system date . 2)if i wanna runtime datepicker value it gives error

2345


What are the recording modes in wave event?

1531