ZS Associates Interview Question

Swap two numbers without using a third variable

Interview Answer

Anonymous

Feb 16, 2018

num1, num2 swapping num1 = num1+num2; num2 = num1-num2; num1 = num1-num2; this the code take 2 numbers and do the process as i told u will understand