Another silly interview question about how to swap 2 variables without temporary variable
In : Uncategorized, Posted by admin on Mar.03, 2009
How to swap 2 variables without using a temporary variable. Silly…
a=a+b;
b=a-b;
a=a-b;
Tags : interview question
Add New Comment
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Add New Comment