/** * stringcopy - Some examples using strcpy. */ #include #include int main () { char *str1; char *str2; char whatever[16]; str1 = whatever; strcpy (str1, "Hello"); printf ("After the first command, str1 is %s\n", str1); str2 = whatever + 2; strcpy (str2, "Hello"); printf ("After the second command, str2 is %s\n", str2); printf ("After the second command, str1 is %s\n", str1); return 0; } // main