The code to swap two variables using macro expansions
Code: C
#include<stdio.h>
#include<conio.h>
#define SWAPE(x,y) int t;t=x;x=y;y=t;
main()
{
int a,b;
printf("\n Enter two number");
scanf("%d%d",&a,&b);
printf("\n Before swaping the Value of a=%d and b=%d",a,b);
SWAPE(a,b);
printf("\n After swap value of a=%d and b=%d",a,b);
return 0;
}


