This C program to concatenate strings, for example if the first string is “c ” and second string is “program” then on concatenating these two strings we get the string “c program”. To concatenate two strings we use strcat function of string.h, to concatenate without using library function see another code below which uses pointers.
C programming code
C Program to Concatenate strings without strcat function
C program to concatenate strings without using library function strcat of string.h header file. We create our own function
The first for loop in concatenate function is calculating string length so you can also use strlen function.