it should swap.... On 10/28/12, rahul sharma <[email protected]> wrote: > Why the following code is not able to swap two macros???although it is > easily swapping 2 variables > > #include<stdio.h> > #define swap(a,b,c) c t;t=a,a=b,b=t > > > int main > > > int x=10,y=20; > int *p,*q; > > swap(x,y,int); > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > >
-- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
