What do parentheses in a C variable declaration mean?

前端 未结 5 1061
忘了有多久
忘了有多久 2020-12-04 19:23

Can someone explain what this means?

int (*data[2])[2];
5条回答
  •  清歌不尽
    2020-12-04 19:58

    There is a very cool program called "cdecl" that you can download for Linux/Unix and probably for Windows as well. You paste in a C (or C++ if you use c++decl) variable declaration and it spells it out in simple words.

提交回复
热议问题