Arokia IT Interview Question

how do you swap two variables without using temporary variable

Interview Answers

Anonymous

Feb 18, 2013

a = b - a + (b=a) ; OR a = a+b; b = a-b; a = a-b

1

Anonymous

Dec 15, 2012

i was not able to answer