What is concatenation ?
Simply,Adding of two string is known as concatenation.
string_1 is "My"
string_2 is "website"
Then after concatenate both string :
There are many possible ways to do this by C programming either you can direct concate or you can use predefined function that concatenate two string.
//input of string
printf("Enter first string\n");
printf("Enter second string\n");
//Find length of first string
//Now concatenate second string in first string
printf("Now first string is %s",ch1);
Enter first string
Enter second string
Now first string is My_program_is_correct
-In this program, we take an input in two string(i.e., ch1 and ch2) both having maximum size of 20.
-For Add second string in first string we follow following things
-Find length of first string.
-Run loop according to second string.
-Add each character of second string in first string at the last position.