Question: Write a recursive C + + function that will use the prototype void remove _ every _ ith ( std::string & str , int ith

Write a recursive C++ function that will use the prototype void remove_every_ith(std::string & str, int ith);
This function should take a string, and it must remove every ith character from the string. Your code must not create a new string variable and use no loops.
Example
With the string "WE! A%RER H&AVGINQG OSOk MyUC*H IFUBN!!" and ith is 3 the string should be changed to "WE ARE HAVING SO MUCH FUN!"

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 Programming Questions!