Hello, This code is from "Test Your C Skills" Book. In the book they have mentioned that this code won't work, and thats true. But I am not able to understand, why its not working. Please explain why it gives error.
#include<stdio.h>
#define SWAP(a,b,c) c t;t=a;a=b;b=t;
int main()
{
float x=10,y=20;
float *p,*q;
p=&x;
q=&y;
SWAP(p,q,float*);
printf("%f %f",x,y);
return 0;
}