I'm having a disagreement with my professor about the following function prototype:
Prompt: "function that takes pointer to a float, a pointer to a pointer to a char and returns a pointer to a pointer to a integer."
I say it is
int ** function(float * myFloat, char ** myChar)
but the options given are:
A. int **fun(float **, char**)
B. int *fun(float*, char*)
C. int ***fun(float*, char**)
D. int ***fun(*float, **char)
none of which I think are correct. To be clear, I'm not asking for a solution - I'm posting my function prototype to show that I THINK I know the solution and have worked through it.
Is it possible that any of the options given are correct? I'd love to be proven wrong and told that one of the solutions is possible (again, don't tell me which is correct if any are possible)
You're right, and none of the 4 suggested answers matches what is stated in the prose.