Question: The cpp program is given: #include #include using namespace std; void myStrcopy(char s1[], char s2[], int index); int myStrlen(char* str); //Main driver int main() {
The cpp program is given:
#include#include using namespace std; void myStrcopy(char s1[], char s2[], int index); int myStrlen(char* str); //Main driver int main() { char str1[100] = "Recursive copy"; char str2[100] = ""; myStrcopy(str1, str2, 0); cout Question: Write a c++ recursive functions that performs the following: 1) A method to compute the length of the input string. Prototype: int myStrLen(char* inputString) 2) A method to copy one string to another string Prototype: void myCopyStr(char sl[, char s211, int index) Please use the provided main function(Lab19-Provided.txt) to test your recursive functions Sample output: clusers hi2suldocumentslvisual studio 20151ProjectslProject14DebuglProject14.exe The string to be copied is: Recursive copy The copied string str2 is: Recursive copy The input string is: Recursive String Length The length of the string23
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
