Skip to content

Instantly share code, notes, and snippets.

@reagent
Created November 6, 2012 13:42
Show Gist options
  • Save reagent/4024810 to your computer and use it in GitHub Desktop.
Save reagent/4024810 to your computer and use it in GitHub Desktop.
2 pointers, 1 string
#include <stdio.h>
int
main (int argc, char *argv[])
{
char *name = "Patrick";
char *other = name;
printf("Name is: %s\n", name);
printf("Other is: %s\n", other);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment