Created
November 6, 2012 13:42
-
-
Save reagent/4024810 to your computer and use it in GitHub Desktop.
2 pointers, 1 string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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