swapping 2 numbers in a single statement

deepneel25's Avatar, Join Date: Aug 2007
Newbie Member
Hi,
I need to know how can i swap 2 numbers which are stored in 2 variables in a single statement???.. I know that it can be done but i am not getting the logic correctly... Please help!!!!!
0
Salem's Avatar, Join Date: Nov 2007
Ambitious contributor
Oh, you mean this pointless trick?
http://c-faq.com/expr/xorswapexpr.html