employer cover photo
employer logo
employer logo

Tata Consultancy Services

Fait partie de Tata Group

Est-ce votre entreprise ?

Question d’entretien chez Tata Consultancy Services

how to swap two variables without using third.

Réponse à la question d'entretien

Utilisateur anonyme

11 avr. 2019

int x = 10; int y = 5; x = x + y ; 15 y = x - y ; 15- 5 = 10 x = x- y ; 15 - 10 = 5