swap 2 variables without using 3 rd variable???
Answer Posted / guest
Ex:
1.
A=20,B=10
A=A-B=20-10=10
B=A+B=10+10=20
A=B-A=20-10=10
2.
A=6,B=4
A=A-B=6-4=2
B=A+B=2+4=6
A=B-A=6-2=4
The above logic works if A>B. If B>A:
B=6, A=4
B=B-A=6-4=2
A=A+B=4+2=6
B=A-B=6-2=4
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
write test condition for testing SMS service of a mobile phone maximun length is 100 character while sending and 80 character for receiving write test scenarios do not write test cases
what are the various techniques you will use as soon as the srs was given to you to speedup the testing?
what are all the things we will include in " what to be tested and what not to be tested" in Test Plan
i need manual testing interview questions for 2+ experience plzz help me..
Can you explain boundary value analysis?
pl. give me the list of top jobs website to register i have 2Yrs. Experience in manual testing
how can you test the web environment for security testing?
how to write manual testcases for download the files from the template. for example:from product cost enddate
through which phases a software ttester need to pass like as a junnior test engineer,team lead,project lead,etc.? which is the final stage of your promotion and how will u achieve?
i heard that mainframe testing is diff from other environments & has lot of keyboard input????pl clarify my doubt & let me know in what way its diff??
Please is there any one working with ITR.COM? Having interview with them. Any tips will help.
where can i learn domain knowledge? how cab i gain domain knowledge? what types of Questions can be asked in domain(BFSI)? PLZ REPLY ME
What is Online gaming, payment gateway development, hosting and custom software development services.
How to write test cases for nevigating menus? Ex. Course -Topics -Subtopics
What is sanity?