Another silly interview question about how to swap 2 variables without temporary variable

In : Uncategorized, Posted by on Mar.03, 2009

How to swap 2 variables without using a temporary variable. Silly…

a=a+b;
b=a-b;
a=a-b;

No comments for this entry yet...