Another way to swap 2 numbers source code

This snippet submitted by Maganti Venkatesh on 2010-09-28. It has been viewed 11256 times.
Rating of 5.1 with 92 votes

int a=10,b=20,c;

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




More C and C++ source code snippets