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:
Output will be displayed as:
Posted on: February 6, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles