Skip to content

Instantly share code, notes, and snippets.

@alexparkjw
Created April 11, 2020 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexparkjw/c7fefd9c4d0ae490c1628d70d7678ce7 to your computer and use it in GitHub Desktop.
Save alexparkjw/c7fefd9c4d0ae490c1628d70d7678ce7 to your computer and use it in GitHub Desktop.
gist test in c
#include <stdio.h>
#define echo(x) printf(#x":\t %s\n", x)
int main(void) {
char textHello[] = "Hello world";
echo(textHello);
return 0;
}
@alexparkjw
Copy link
Author

printing variable name and literal string both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment