Question: 1. Write a function that, passed a string and a search string, returns a count of the number of times the search string occurs in

1. Write a function that, passed a string and a search string, returns a count of the number of times the search string occurs in the first string. For example, if the first string is Mr. Mickey Mouse" and the search string is "M, the function should return 3. If the search string is not found, return 0. Also write a statement that demonstrates calling the function and assigning its return value int a variable C of type int. You can pass literal strings to the function; you do not have to read the values from the user
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
