[Solved] : Question 12514

How to correct the error? TQ

#include <iostream>
using namespace std;

void recursiveToLower(char str[])
{
if ( str[0] != ” ) {
str[0] = toupper( str[0] ); // do this char
recursiveToLower( str+1 ); // recursively do the remaining chars
}
}

int main()
{
char word[10] ;
cin >> word

cout << recursiveToLower(word);

system (“pause”);
return 0;
}


Expert Answer


Answer to : Question 12514

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?