Teradyne interview question

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

Interview Answer

Anonymous

20 Nov 2024

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

1