I am reading about the preprocessor features and functions. The author states "If you place a # in front of a parameter in a macro definition, the preprocessor creates a constant string out of the macro argument when the macro is invoked." And one of the examples they give is:
Now they just say that the #define statement would cause printint to change to printf with the added content. But the above code does not print anything. Do I need anything else I am missing?Code:#include <stdio.h>
#define printint(var) printf( # var " = %i\n", var)
int main(void)
{
int count = 2;
printint (count);
}