C program to Concatenate two strings without using string library function strcat()

Implementation of strcat() function with for loop.

Copy to Clipboard

Output:

Copy to Clipboard

If we are allowed to do the same program with string library function then following function is used to do the same task:

strcat(str1,str2);

The above line will append content of str2 after content of str1.