Question d’entretien chez Intel Corporation

How can you exchange the value of two variables without using a third variable?

Réponses aux questions d'entretien

Utilisateur anonyme

22 mars 2011

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

9

Utilisateur anonyme

6 avr. 2015

int Val1 = 5; int Val2 = 10; Val1 ^= Val2; Val2 ^= Val1; Val1 ^= Val2;