1. (20 pts) Write a recursive function which will receive a c-string (char*) and a character to search for. Your functio
Posted: Fri Jul 01, 2022 5:37 am
1. (20 pts) Write a recursive function which will receive a c-string (char*) and a character to search for. Your function cannot have any loops and should return the total number of occurrences of the character in the cstring. Your function signature must be as below: int findOccurrences(char* cstr, char to Find);