我对吗 ? - C表达式

Bat*_*man 3 c expression

int *(*(*P)[2][2])(int,int);
Run Code Online (Sandbox Code Playgroud)

P是指向具有2个int类型参数的函数的2x2指针数组的指针,它返回一个int类型指针.它是否正确?

Car*_*rum 16

cdecl 是一个很好的工具,可以解决这些问题:

$ 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
Run Code Online (Sandbox Code Playgroud)

是的,你是对的.