employer cover photo
employer logo
employer logo

Tata Consultancy Services

Part of Tata Group

Engaged employer

Tata Consultancy Services interview question

Swapping 2 variables without using 3rd variable

Interview Answer

Anonymous

21 Aug 2018

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

3