fork(3) download
  1. #include <stdio.h>
  2.  
  3. #define CONCAT(S1,C,S2) ({ \
  4.   static const struct __attribute__ ((packed)) { \
  5.   char s1[sizeof (S1) - 1]; \
  6.   char c; \
  7.   char s2[sizeof (S2)]; \
  8.   } _r = { (S1), (C), (S2) }; \
  9.   (const char *) &_r; \
  10.   })
  11.  
  12. int
  13. main (void)
  14. {
  15. puts (CONCAT ("abc", 'd', "efg"));
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
abcdefg