Skip to content

Instantly share code, notes, and snippets.

@msikma
Created September 15, 2016 22:40
Show Gist options
  • Save msikma/021abc211211be9614aade8575903c8a to your computer and use it in GitHub Desktop.
Save msikma/021abc211211be9614aade8575903c8a to your computer and use it in GitHub Desktop.
#include <stdio.h>
char a[] = "foo\n";
char b[] = "bar\n";
char *c[] = {
a,
b
};
char *d;
int main() {
printf("%s", c[0]);
d = c[0];
printf("%s", d);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment