Another way to swap 2 numbers source code

This snippet submitted by Maganti Venkatesh on 2010-09-28. It has been viewed 12314 times.
Rating of 5.4 with 100 votes

int a=10,b=20,c;

a=a*b;
b=a/b;
a=a/b;




More C and C++ source code snippets