Teradyne Interview Question

How to swap two numbers without using pass by reference or temporary variables

Interview Answer

Anonymous

Nov 20, 2024

x += y; y = x - y; x = x -y;

1