Infosys Interview Question

Write a code to swap two variables without using third variable

Interview Answer

Anonymous

Mar 19, 2024

a = a+b; b = a-b; a = a-b;