Another way to swap 2 numbers source code

This snippet submitted by Maganti Venkatesh on 2010-09-28. It has been viewed 5285 times.
Rating of 4.3 with 50 votes

int a=10,b=20,c;

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




More C and C++ source code snippets

Add a snippet!