Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created May 2, 2015 06:38
Show Gist options
  • Save shigemk2/2c7d51263d6495ca8459 to your computer and use it in GitHub Desktop.
Save shigemk2/2c7d51263d6495ca8459 to your computer and use it in GitHub Desktop.
#include <string.h>
#include <stdio.h>
int main() {
char a[10], b[10];
strcpy(a, "some");
printf("%s\n", a); // some
strcpy(b, "day");
strcpy(a, b);
printf("%s\n", a); // day
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment