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
Get step-by-step solutions from verified subject matter experts
