Question d’entretien chez Citi

How do you swap two integer variables without using a temp variable?

Réponses aux questions d'entretien

Utilisateur anonyme

4 mai 2013

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

7

Utilisateur anonyme

21 janv. 2020

In one line it can be done as below a=a+b -(b=a)