Write a recursive, int -valued function, len, that accepts a string and returns the number of characters in the string. The length of a string is: 0 if the string is the empty string (“”””). 1 more than the length of the rest of the string beyond the first character.

Write a recursive, int -valued function, len, that accepts a string and returns the number of characters in the string. The length of a string is: 0 if the string is the empty string (“”””). 1 more than the length of the rest of the string beyond the first character.

LANGUAGE: C++

CHALLENGE:

Write a recursive, int -valued function, len, that accepts a string and returns the number of characters in the string. The length of a string is: 0 if the string is the empty string (“”). 1 more than the length of the rest of the string beyond the first character.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level