Question: HelloI need the C++ code for this question, a requirement is to not use global variables, so please do not do so. I have already
HelloI need the C++ code for this question, a requirement is to not use global variables, so please do not do so. I have already asked a question on this but my teacher said that the answer doesn't do what it's supposed to, so I'm asking again for some help. Here is the question:

So the previous code asked for the string, the character you wanted to find, and it also asked for "the value of n." My teacher said it should only ask for a string and the last occurence of a character in that string, the output what that last occurence is. This code is pretty difficult, so I will insert the code that I received from the last time I asked, hopefully it can help you out. Please do what I said though, or I will receive another 0 ): Thank you a lot
E7.6 Write a function that returns a pointer to the last occurrence of the character c in the string s, or nullptr if there is no match char* find_last (char s[], char c)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
