Question: In a file called pp8b.cpp write a C++ function called myStrcat (a string concatenation, NOT a string copy) that takes two C-string parameters and appends
In a file called pp8b.cpp write a C++ function called myStrcat (a string concatenation, NOT a string copy) that takes two C-string parameters and appends the second to the first just like the C++ strcat function. It returns nothing via a return statement. It's post-condition is that the first actual parameter is altered. Write a main driver that prompts the user for two strings, calls myStrcat to concatenate a blank space to the end of the first string then call myStrcat again to concatenate the second string to the end of the first string. Except for strlen, DO NOT use any functions from the cstring header file. HINT: don't forget to null character, '\0', that must be at the end of every C-string.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
