Okay, so I got a program that I'm suppose to analyze and I pretty much understand most of it, but I'm having some difficulties understanding funcC. The output is fairly obvious, but I'm not entirely sure how to refer to the parameter in funcC, or how to refer to the first statement. Also, why exactly does the second statement need to be dereferenced before the ++. My prof specifically said I would need sources outside my book to analyze this program, but it's kind of difficult to find any useful information when I'm not even sure how to refer to it. Any help or links would be greatly appreciated, thankyou.
When function funcC is called its local variable s points to ptrC. So expression ( *s ) is in fact ptrC. Expression ( *s )++ is equivalent to expression ptrC++. So now ptrC points to the next (last) character in the original string. This last character in function funcC was changed to 'z'. After exiting the function ptrC keeps its new value that is pointer to character 'z' in the original string.