开发者

Am i right ? - C expression

开发者 https://www.devze.com 2023-02-09 11:05 出处:网络
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 f
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

精彩评论

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