code break wrote:
Hi all,
i come across the following declaration in some code.
int (*ptr)[ 10];
any feedback helps a lot for me.
There's a utility called cdecl that can translate C into english and
vice versa:
cdeclexplain int (*i)[10];
declare i as pointer to array 10 of int
Beware though, some (all?) versions of cdecl seem to have some reserved
keywords, so you'd get a syntax error in your case:
cdeclexplain int (*ptr)[10];
syntax error
Just change ptr into something else and it should work.
--
WYCIWYG - what you C is what you get