I'm trying to recursively go through a C-Style char array to find a letter.
Unfortunately the strcmp function that I'm using is giving me a error I was hoping someone could enlighten me on the topic.
Firstly, char *position=strchr("Hello, World!",'o');
Secondly, searching for values in unsorted arrays is done by iteration, not recursion.
Thirdly, your recursion is infinite.
I agree, that iteration would have been better but this is the way its supposed to be done for an assignment at school. Which immediately rules out both iteration and strchr. Recursion is the only option.