C program to Concatenate Two Strings

In this article, We will show you, How to write a C program to Concatenate Two Strings without using strcat function.

In C Programming, We can concatenate two string in multiple way, but we will discuss four different approaches for string concatenation in c: using For Loop, While Loop, Functions, and Pointers.

C program to Concatenate Two Strings without using strlcat()

This string concatenation program allows the user to enter two string values or two character array. Next, it will use For Loop to iterate each and every character present in that arrays, and joins them (or concatenate them)

C program to Concatenate Two Strings Using While Loop

This program for string concatenation in c is same as above but this time we are using While loop (Just replacing For Loop with While Loop). I suggest you to refer While Loop to understand the loop Iteration in C.