Question: In C++ write a Recursive function with no loops, strAddsChar that accepts a string s and returns a string containing all the characters in s

In C++ write a Recursive function with no loops, strAddsChar that accepts a string s and returns a string containing all the characters in s that have odd index values. Thus strAddsChar(abcdefg) will end up returning aceg. Make sure you are using a C++ string and not an array of char.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!