Ugly interview question: How would you declare an array of N pointers to functions returning pointers to functions returning pointers to characters in c++? Show it with and without typedef.
Let's say the functions take no params.
Is mine correct with typedef?
typedef char* (*f1)();
typedef f1 (*f2)();
f2 a[N];
std::array<std::function<std::function<char*()>*()>*, N>:)char *(*(*name_of_array[N])())()id<id<char*()>*()>*[N]