Complex declarations

后端 未结 8 1462
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 05:03

How do I interpret complex declarations like:

int * (* (*fp1) (int) ) [10]; ---> declaration 1
int *( *( *[5])())(); --------> declaration 2

8条回答
  •  温柔的废话
    2020-11-30 05:41

    Though it's has been answered already, but you may also read this article :

    http://unixwiz.net/techtips/reading-cdecl.html

提交回复
热议问题