Skip to content

Instantly share code, notes, and snippets.

@alexparkjw
Created April 11, 2020 02:24
Show Gist options
  • Select an option

  • Save alexparkjw/c7fefd9c4d0ae490c1628d70d7678ce7 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
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