Question: This is C Programming Write a function to take a string of no more than 50 characters and a character and returns the count of

This is C Programming

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 functions 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.

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