/* strings3_copy_concat_length.c */ #include #include int main() { char str1[12] = "Hello"; char str2[] = "World"; char str3[11]; printf("str1 contains \"%s\"\n",str1); printf("str2 contains \"%s\"\n",str2); strcat(strcat(str1, " "), str2); printf("A space and str2 concantenated to str1 is \"%s\"\n", str1); printf("The length of the string is %d characters. \n", strlen(str1)); printf("Note that the \\0 at the end of the string is not counted.\n"); return 0; }