Maybe is a silly questiion, but I haven't found a solution to what I want. Basically, I would like to declare a pointer to an array of pointers to function pointers to functions with N parameters that returns an const pointer to an int.
The code below is declaring an array of pointers to the function pointers:
int *const (**fptr[10])(...); // (const int* || int const*) != int *const
As you can see, the only thing is missing ( I think) is the pointer to the code from above.
I'm just a beginner and I'm not using this type of syntax in production, I'm just having fun while learning C++.
Thanks,
Armando.
int *constis a little nonsensical as a return value. If you want a pointer that is not allowed to modify itsint, go withint const *.constvalue. You get an rvalue back from the function call; there is no way to modify it anyway.const, but the const-ness of the return value doesn't affect anything. Usually you use a reference declared with&instead of a*constas the semantics are nearly identical.