Skip to content

Instantly share code, notes, and snippets.

@kenjiskywalker
Created January 20, 2012 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenjiskywalker/1646569 to your computer and use it in GitHub Desktop.
Save kenjiskywalker/1646569 to your computer and use it in GitHub Desktop.
study3
#include <stdio.h>
#include <string.h>
int main() {
char str_a[20];
char *pointer;
char *pointer2;
strcpy(str_a, "Hello, world!\n");
pointer = str_a;
printf(pointer);
pointer2 = pointer + 2;
printf(pointer2);
strcpy(pointer2, "y you guys!\n");
printf(pointer);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment