Skip to content

Instantly share code, notes, and snippets.

@rmccullagh
Created August 12, 2016 15:47
Show Gist options
  • Save rmccullagh/95d03947e52a949edc5a3e50a650967f to your computer and use it in GitHub Desktop.
Save rmccullagh/95d03947e52a949edc5a3e50a650967f to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
char *data[] = {
"Ryan", "McCullagh"
};
char *ptr = *(data + 1);
fprintf(stdout, "%s\n", ptr);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment