Suppose I have a function signature:
bool func(const char** arrayOfStrings);
And I have a auxiliary function with signature:
char** auxFunc(not relevant);
For some reason I can manage to do the following:
func(auxFunc(not relevant));
I got compiler warnings/errors:
error: initializing 'const char *' with an expression of type 'char *' discards qualifiers in nested pointer types
Why this is not working as I expect it to, and what can I do about it?