Declare an array of function pointers that return a pointer to a func that in turn return a pointer to a char array.

can you helpme in this . i have doubt in the last thing. if at the last it is "return a pointer to char", then i can write it , but that pointer to a char array confusing me alot. thanks

char*(*(*a[])())()

what to include so as to include pointer to char array, but not pointer to char. thanks.

typedef char * (*stringReturn) (); // This is a function taking no arguments and returning string
stringReturn * (*funcArray[256])(); // This is an array of functions returning the above type
DWORD (*funcArray[256])(); // Alternatively, you could cast the function address to unsigned int
// return (DWORD)&stringReturnObject;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.