So I have the following expression
int *(*table())[30];
In my opinion table() return a value which points to the beginning of an array of pointers which each element points to an integer.
What do you think?
Thanks.
So I have the following expression
int *(*table())[30];
In my opinion table() return a value which points to the beginning of an array of pointers which each element points to an integer.
What do you think?
Thanks.
You're correct. According to cdecl
int *(*table())[30];
declare table as function returning pointer to array 30 of pointer to int
See also the clockwise/spiral or right-left rules for help understanding C expressions (and see comments below for some points in favour of the latter).