Created
May 2, 2015 06:38
-
-
Save shigemk2/2c7d51263d6495ca8459 to your computer and use it in GitHub Desktop.
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 <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