This function concatenates the source string at the end of the target string.
syntax:
strcat("target_string","source_string");
example:
source="book"
target="face"
strcat(target,source);
[Here, source string(i.e. book) is add at the end of target string(i.e. face). Hence now value of target string(i.e. face) is "facebook".
illustrate strcat() in C program:
syntax:
strcat("target_string","source_string");
example:
source="book"
target="face"
strcat(target,source);
[Here, source string(i.e. book) is add at the end of target string(i.e. face). Hence now value of target string(i.e. face) is "facebook".
illustrate strcat() in C program: