Last active
October 22, 2018 19:51
-
-
Save VehpuS/d9a2fa894a493a0c6347a9b08f03f208 to your computer and use it in GitHub Desktop.
Macro concatenate created by VehpuS - https://repl.it/@VehpuS/Macro-concatenate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
// https://gcc.gnu.org/onlinedocs/cpp/Concatenation.html | |
#define test(a) b ## a | |
int main(void) { | |
char* bc = "Hello World\n"; | |
printf(test(c)); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment