可能重复:
Complex Declarations
有人可以帮我解决这个问题并帮助我理解吗?
1) char *(*(*a[N])( ))( );
2) char (* (*x[3]) ( ))[5];
3) char (*(*f( ))[ ]) ( );
答案 0 :(得分:4)
黄金法则是。只需使用http://cdecl.org/:
declare a as array 5 of pointer to function returning pointer to function returning pointer to char
(我将N
替换为5
)
declare x as array 3 of pointer to function returning pointer to array 5 of char
declare f as function returning pointer to array of pointer to function returning char
要了解如何自行解释,这是MSDN的一个非常好的解释:Interpreting More Complex Declarators。