#include<stdio.h> #define swap(a,b,c) c t;t=a,a=b,b=t; main() { float x=10,y=20; float *p,*q; p=&x,q=&y; swap(p,q,float *); }
Standard input is empty
prog.c:4: warning: return type defaults to ‘int’ prog.c: In function ‘main’: prog.c:11: warning: control reaches end of non-void function
10.000000 20.000000 20.000000 10.000000