Pregunta de entrevista de Arbo (GA)

Swap the value of two variables without using a temporary variable.

Respuesta de la entrevista

Anónimo

18 nov 2022

ex: a = 5, b = (-2) a = a + b = 5 + (-2) = 3 b = a - b = 3 - (-2) = 5 a = a - b = 3 - 5 = -(2)