We can use string function
strncat() to concatenate part of strings.
The part of second string is added at the end of the first string.
We will use this and here is one example.
The output of above code is here
char var2="welcome to ";
welcome to plus2
- Source string is not affected
- Part of the Source string is added at the end of the destination string.