Join string : Macro String « Macro Preprocessor « C / ANSI-C






Join string

#include <stdio.h>

#define JOIN(a, b) a ## b

int main(void)
{
  printf(JOIN("one ", "two"));

  return 0;
}


           
       








Related examples in the same category

1.Use macro to build string
2.Output string using Macro