Re: Function pointers
Milind A Choudhary <[email protected]>
| Newsgroups | org.kernel.vger.linux-c-programming |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jan 21, 2010 at 4:56 AM, Glynn Clements <[email protected]> wrote: > > kumar11 wrote: > >> Could you please explain the meaning of below declaration statement. >> >> char (*pa())[4]; > > "pa" is a function returning a pointer to an array of four characters. > You already have got the required answer from others. C and function pointers can always be confusing. At times you think you have understood it throughly and but still not be able to decode some more complex declarations. (cdec can come to help but not always..at least not in a technical interview ) The best approach that I have come across is the `Clockwise Spiral` rule. (link : http://www.c-faq.com/decl/spiral.anderson.html ) Hope this helps.. Thanks & Regards Milind A Choudhary http://www.csl.mtu.edu/~machoudh/ -- Milind Arun Choudhary