ProAnswers.org

What is the use of # in macro functions in c?

It is used to return the string equivalent of the passed parameter. Consider the following example:-
#define debug(exp) printf(#exp " =%f",exp);

Now debug(x/y); will convert to printf("x/y" " =%f",x/y);

This will print: x/y =