Question: I NEED HELP! HOW DO I WRITE THIS IN C PROGRAMMING LANGUAGE!!! Function Prototype: /* * Complete the function below. */ char* mergeStrings(char* a, char*
I NEED HELP! HOW DO I WRITE THIS IN C PROGRAMMING LANGUAGE!!!
Function Prototype:
/* * Complete the function below. */ char* mergeStrings(char* a, char* b) {
}

Merge Strings Complete the mergeStrings function in your editor. It has 2 parameters: 1. A string, a 2. A string, b. Your function must merge strings a and b, and then return a single merged string. A merge operation on two strings is described as follows: Append alternating characters from a and b, respectively, to some new string, mergedString Once all of the characters in one of the strings have been merged, append the remaining characters in the other string to mergedString. nput Format The locked stub code in your editor reads two strings, a and b, from stdin and passes them to your function. Constraints 1 s lal, lbl s 25000 Output Format Your function must return the merged string. This will be printed to stdout by the locked stub code in your editor. Sample Input 1 abc def
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
