- 1 20 Pts Write A Recursive Function Which Will Receive A C String Char And A Character To Search For Your Functio 1 (384.25 KiB) Viewed 62 times
1. (20 pts) Write a recursive function which will receive a c-string (char*) and a character to search for. Your functio
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1. (20 pts) Write a recursive function which will receive a c-string (char*) and a character to search for. Your functio
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);