Question
THE FOLLOWING IS IN C PROGRAMMING. Please complete the code based on what the comments say. Thanks! #include #include #include #define SIZE 50 /** *
THE FOLLOWING IS IN C PROGRAMMING. Please complete the code based on what the comments say. Thanks!
#include
#define SIZE 50
/** * You are given a function called mergeWords that takes 2 string parameters. * The first parameter (oS) is a sentence, given as input to the function. * The second parameter (mS) must be an empty string (""). * The function merges all words in oS together and stores the result in mS - * (so that mS now has the same content as oS minus the spaces). * Signature of mergeWords: (char [SIZE], char [SIZE]) -> void * Example: * char aString [SIZE] = "I can program now"; * char mString [SIZE] = "", * Call to mergeWords(aString, mString) modifies mString so that it now stores "Icanprogramnow". **/ void mergeWords(char oS[SIZE], char mS[SIZE]);
/** * Main **/ int main ( void ) { /** * TODO: Test your function here. Please print expected output as well as the actual output * You need at least 4 good test cases **/
return 0; }
/** * Your declarations should go here. Feel free to make other functions if you think they'd help **/
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started