How Do I Declare An Array Of N Pointers To Functions Returning Pointers To Functions Returning Pointers To Characters

How Do I Declare An Array Of N Pointers To Functions Returning Pointers To Functions Returning Pointers To Characters


  • 21 Dec, 2011

    Answer1If you want the code to be even slightly readable, you will use typedefs.typedef char* (*functiontype_one)(void);typedef functiontype_one (*functiontype_two)(void);functiontype_two myarray[N]; //assuming N is a const integralAnswer2char* (* (*a[N])())()Here a is that array. And according to question no function will not take any parameter value.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.