employer cover photo
employer logo
employer logo

Tata Consultancy Services

Part of Tata Group

Engaged employer

Tata Consultancy Services interview question

5.Write the LOGIC for Swapping of Two Numbers WITHOUT using temporary variable ?

Interview Answer

Anonymous

19 Feb 2018

I wrote. int a,b ; a = a + b ; b = a - b; a = a - b ;