加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c – int * array [32]是一个指向32个int数组的指针,还是一个指

发布时间:2020-12-16 05:49:36 所属栏目:百科 来源:网络整理
导读:如果我写 int *columns[32]; 我是用32个指针定义一个数组吗? 还是指向32个int数组的指针? 我如何区分两者?有差异吗 解决方法 当有疑问 – 请问cdecl $ cdecl Type `help' or `?' for helpcdecl explain int *columns[32]declare columns as array 32 of p
如果我写
int *columns[32];

我是用32个指针定义一个数组吗?
还是指向32个int数组的指针?

我如何区分两者?有差异吗

解决方法

当有疑问 – 请问cdecl
$> cdecl 
Type `help' or `?' for help
cdecl> explain int *columns[32]
declare columns as array 32 of pointer to int

编辑响应评论:我在Google Code Search发现cdecl源码,需要GNU readline库.我认为在Mac OS X或Windows上编译它不应该是一个问题.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读