Swap 2 variables without using a temp variable

Answer Posted / sheetal

if a=5 and b=3 are two variables, then add them i e
a=a+b; a=8
b=a-b; b=5
a=a-b; a=3

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How a test engineer will convince a test lead when he didn't approve the bug as a report ???

1161


Why performance testing is performed? What are tools of performance testing?

719


What is your daily process? I have 2+EXP IN MANUAL TESTING.PLEASE SUGGEST ME HOW i ANSWER

1816


Hi, Anybody knows about Hexaware company..

1678


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

3048






Write a Test scenario for Outlook Search functionality.

2595


What are the RBI rules has to follow by a bank for online precesseing. ?

1721


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

1465


Hi friends, currently i am working with banking domain project in the part of testing..what kind of questions will be ask at interviews.. can anybody listout the project oriented questions which are asked in interviews...

3425


Need to know about Quality Center in brief

1478


hi everybody, iam Adi Durga, i complited my bsc(computers) in 2008.I have experience in finacial and bpo companys(mnc). but iam intersted on s/w role.I have the technical skills c, c++, Oracle 9i and manual testing. But i dont know hoe to strat my career in s/w. Every company offering on financial/bpo side. In this I attended nearly 10 companies,I selected in 8. All those are bpo and finacial, But i cant get any opportunities on s/w side.plz help how to get opportunites on s/w side. Actually I am interested on testing side. But every company offering for only experienced persons. plz help me. this is my mailid.... adi.durga19@gmail.com

1734


How can you define state tanstion testing aswell decesion testing with examples.how you can differ them too??

1781


What is boundary value testing? Give an example.

714


What is user acceptance testing (uat)?

655


Can you explain boundary value analysis?

663