Tech Mahindra interview question

How to swap two variables without third variable?

Interview Answer

Anonymous

5 June 2017

Its pretty easy x=x+y y=x-y x=x-y