Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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.
THIS IS A C PROGRAM.(with printf and scanf)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started