Swap 2 variables without using a temp variable

Answer Posted / mfsi_satyakamm

int x,y;
x=x+y;
y=x-y;
x=x-y;

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can a LOG for testcases be maitained which can give information about a TestCase that is it new one or has been occured in previous versions of the software.

1587


Hi Can any one tell wht type of questions will be asked in project manager round...urgent plz...

1573


What and why is api testing?

943


can any one explain me briefly erp pharma project including all modules,like how to tell this project in interview in terms of s/w testing

1650


What are the queries mostly asked in testing ? give me some examples.

1450






What is Test Design?

1741


Inwhat basis the time is allocated for testing the application?

1413


how will you test transfer funds module...explain in detail

1162


Once automated, what are the types of functionality provides the highest Return On Investment (ROI) to the company?

10437


what is TAS language which is used as a language for some projects/

1589


what is the architecture of your current project?

1965


How the application is launched to the production environment?

1190


how to explain banking domain project in testing?

10295


Is an "A fast database retrieval rate" a testable requirement?

1516


What is pesticide paradox? How to overcome it?

782