My teacher posted sample code with a function with parameters:
void funcName ( char const * const init )
What I understand is that both the char and the pointer are constants.
I'm confused as to what type of pointer init is from the declaration alone.
Usually if I want to pass a pointer I just do
void myFunc (int * pointer)
So the type of the pointer is an int because it's to the left of "*".
Looking at the code I know that init is really a string.
So shouldn't the function instead be?:
void funcName ( char const char* const init)
Thanks