Question: C PROGRAM Write a function called concat which takes two strings as input, s1 and s2 and returns a new string, s3, in which the
C PROGRAM Write a function called concat which takes two strings as input, s1 and s2 and returns a new string, s3, in which the second string is concatenated (added to) on to the end of the first string. In other words the new string consists of all the characters of s1 up to but not including the null character followed by all the characters in s2 including the final null character. For example, if s1 is agree and s2 is able, the new string would contain agreeable. Your function should also return the length of the new string. Write a main program which tests your function. The program output should look like: The concatenation of the string: "agree" and the string: "able" is the string: "agreeable" which is 9 characters in length.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
