Define macro for string and output : Macro Constant « Macro Preprocessor « C / ANSI-C






Define macro for string and output

  
#include <stdio.h>

#define FUN "Macro Substitutions"

int main(void)
{
  printf(FUN);

  return 0;
}


           
       








Related examples in the same category

1.Use Macro
2.Define Macro: TRUE and FAlSE
3.Define macro: constant
4.Define constant in Macro for loop controlDefine constant in Macro for loop control
5.Define constant in MacroDefine constant in Macro
6.Define Macro and use it as the loop condition
7.Define macro inside the main function
8.Define marco based calculation
9.Define header file name in macro