fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. #define PRINT(var,format) printf(#var" is %"#format"\n",var)
  5. #define XSTR(x) STR(x)
  6. #define STR(x) #x
  7. #define PRINT2(var) ("test"XSTR(x)"test")
  8.  
  9. int main(void) {
  10. int xyz = 123;
  11. PRINT(xyz, d);
  12. int n = 5;
  13. printf("%s\n", PRINT2(n));
  14. return 0;
  15. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
xyz is 123
testxtest