-----Original Message----- 
From: Sumanth NS [mailto:sumanth@ece.iisc.ernet.in] 
Sent: Mon 11/29/2004 3:15 PM 
To: 
Cc: 
Subject: [UTTARA] Pointers to array returning pointers to functions returning pointers to (phew!)..

> 
> http://www.eskimo.com/~scs/C-faq/q1.21.html
> 
> - I found this extremely confusing. Can you please spare
>   a little time and decipher this for me?
> 
 
The question is:

How do I declare an array of N pointers to functions returning pointers 
to functions returning pointers to characters? 
 
Let us break this question into parts, back to front:

" ... function returning pointer to characters."

char *potter ();

" ... pointer to function returning pointer to characters."

char * (*potter) ();
       ^^^^^^^^^^^^
        Surround this between `(*' and ')'.

" ... pointer to function returning pointer to function returning pointer
 to characters."

char * ( * ( *potter )() ) ();

" array of N pointers to function returning pointer to function returning 
pointer to characters."

char * ( * ( *potter[N] ) () ) ();

If you have not understood this, then practice will help.

> - Is there a formula I can use?
> 

As a matter of fact, yes.  See Question Nos. 16 and 44.

> Your 'pointers' will be appreciated ;) !!
> 
> Best wishes
> Sumanth


    Source: geocities.com/vijoeyz/faq/c

               ( geocities.com/vijoeyz/faq)                   ( geocities.com/vijoeyz)