Stringizing Operator (#) in C - Stringize Operator in C



 stringizing operator in c

Learn C - C tutorial - stringizing operator in c - C examples - C programs

Stringizing Operator (#) in C

  • The operator # is known as Stringize Operator in C language, it is used in conjunction with #define directive.
  • Stringize Operator (#) is used to turn the argument into quoted string.You may want to convert a macro argument into a string constant some times.You can use the ‘#’ preprocessing operator.

Sample Code

#include <stdio.h>
#define printText(text) #text
int main()
{
    printf(printText(wikitechy));
    printf("\n");
    return 0;
}

Output

wikitechy


View More Quick Examples


Related Searches to Stringizing Operator (#) in C - Stringize Operator in C