macro

anilk501's Avatar
Go4Expert Member
1) write generic swap macro used to swap data b/w any type: swap 2 int ,float or char etc.
0
listendinesh's Avatar, Join Date: Aug 2007
Go4Expert Member
You can do it without temp var.
Code:
#define SWAP(a,b)  a=a+b;b=a-b;a=a-b;