To tylko jedna z 2 stron tej notatki. Zaloguj się aby zobaczyć ten dokument.
Zobacz
całą notatkę
Strcat char *strcat(char *dest, const char *src); strcat appends a copy of src to the end of dest The length of the resulting string is strlen(dest) + strlen(src) strcat returns a pointer to the concatenated Strings #include #include int main() { char destination[25]; char *space = " ", *c = "C", *a = "ANSI"; strcpy(destination, a); strcat(destination, space); strcat(destination, c); printf("%s\n", destination); /* ANSI C */ return 0; }
... zobacz całą notatkę
Komentarze użytkowników (0)