C String Concatenation
In this section you will study how to concatenate the two strings in C. You can see in the given example, we have declared two strings in order to combine the strings. For this, we have used the library function strcat() provided by the header file <string.h>. This method takes two char arguments and returns the concatenated string as a char.
Here is the code:
STRINGCO.C
#include <stdio.h>
|
Output will be displayed as:
STRINGCO.EXE