Pregunta de entrevista de Desquared

Consider two variables x, y. Swap their data without using a third varaible.

Respuesta de la entrevista

Anónimo

1 jun 2023

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