Write a function to take a string of no more than 50


Problem

Write a function to take a string of no more than 50 characters and a character and returns the count of a letter the user inputs. If the letter is not found, the function returns -1.

Use the function in main to get two inputs from the user, a sentence and a character, then show the count of that character.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a function to take a string of no more than 50
Reference No:- TGS02644556

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)