STRCAT()
char *strcat(char *destination, char *source);
char* ptr = "Computer"
strcpy (string, "Alice ");
strcat (string, "has no ");
strcat (string, ptr);
* fills the array string with Alice has no Computer
* appends a copy the string pointed to by source to the end of the string
pointed to by destination
- the null character that originally closes destination is removed. then a copy of
source is appended to destination along with its closing null character.
Last updated