By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,109 Members | 1,008 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,109 IT Pros & Developers. It's quick & easy.

explain complex c declarations

P: n/a

Is there a program that can explain complex C declarations like

char (*(*x[4])( ))[5]

like so:
x is array[3] of pointers to functiion returning pointer to array[5]
of char
???
May 20 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Osiris wrote:
Is there a program that can explain complex C declarations like

char (*(*x[4])( ))[5]

like so:
x is array[3] of pointers to functiion returning pointer to array[5]
of char
???
Yes

$ cdecl
Type `help' or `?' for help
cdeclexplain char (*(*x[4])( ))[5];
declare x as array 4 of pointer to function returning pointer to array 5
of char
--
Tor <torust [at] online [dot] no>
May 21 '07 #2

P: n/a
On Mon, 21 May 2007 01:59:29 +0200, Tor Rustad <torust_at_online.no>
wrote:
>Osiris wrote:
>Is there a program that can explain complex C declarations like

char (*(*x[4])( ))[5]

like so:
x is array[3] of pointers to functiion returning pointer to array[5]
of char
???

Yes

$ cdecl
Type `help' or `?' for help
cdeclexplain char (*(*x[4])( ))[5];
declare x as array 4 of pointer to function returning pointer to array 5
of char

ah, of course... You make me remember... thnx
May 21 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.