开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜