Question: of Problem-4 (10 points). The function given below is intended to calculate the number character appears in a string. For example if you call the

of Problem-4 (10 points). The function given below is intended to calculate the number character appears in a string. For example if you call the function as: occurrencesofl" APple". p' it should return 1 (lowercase 'p' appears once in the word APple, 'P' and'p' are different letters for the computer.). times a 4. Complete the function occuraenceOf using the start code here: int occurrencesof(char strll, char c) f int occurrences8; int lenght =0; // You must complete the while loop whilef // You must complete the for loop for(int ii return occurrences
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
