![]() |
macro
1) write generic swap macro used to swap data b/w any type: swap 2 int ,float or char etc.
|
Re: macro
You can do it without temp var.
Code:
#define SWAP(a,b) a=a+b;b=a-b;a=a-b; |
| All times are GMT +5.5. The time now is 02:37. |