Am i right ? - C expression
int *(*(*P)[2][2])(int,int);
P is a pointer to 2x2 array of pointers to a function with 2 type int parame开发者_开发问答ters, that returns a int type pointer. Is this correct?
cdecl
is a great tool for figuring these kinds of problems out:
$ cdecl
Type `help' or `?' for help
cdecl> explain int *(*(*P)[2][2])(int,int);
declare P as pointer to array 2 of array 2 of pointer to function (int, int) returning pointer to int
So yes, you're correct.
精彩评论