Aspire Systems Interview Question

How do you swap two numbers without third variable?

Interview Answer

Anonymous

Mar 20, 2017

I answered that I will sum two numbers and subtract it from the other. Eg : a= 12 b=5 a=12+5-12 b=5+12-5

1