Stringtify Arguments of C Macro
We can use #
inside a macro to stringtify argument to macros.
For example,
#define STRINGIZE(x) #x
const char* str = STRINGIZE(12);
generates
const char* str = "12";
We can use #
inside a macro to stringtify argument to macros.
For example,
#define STRINGIZE(x) #x
const char* str = STRINGIZE(12);
generates
const char* str = "12";