Another way to swap 2 numbers source code

This snippet submitted by Maganti Venkatesh on 2010-09-28. It has been viewed 11907 times.
Rating of 5.2 with 96 votes

int a=10,b=20,c;

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




More C and C++ source code snippets