@Anika Jain
#include<stdio.h>#define FUN(a,b,c) c t; t=a;a=b;b=t;
int main(){
int a=2,b=3;
int *x,*y;
x=&a,y=&b;
printf("%d %d \n",a,b);
printf("%u %u \n",x,y);
FUN(x,y,int *);
printf("%d %d \n",a,b);
printf("%u %u \n",x,y);
return 0;}
Output:
1234
2 3
3212851908 3212851904
2 3
3212851904 3212851908
it is working fine. see the output.
Best Wishes
Sachin Sharma
University of Delhi
--
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.