* array []是什么意思? [英] What does *array[] mean?

查看:55
本文介绍了* array []是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是什么意思?我一直在程序中看到它,但不明白:

What does this mean? I see it all the time in programs and I don't get it:

int *array[9];

为什么星号在那里.这个声明和这个声明有什么区别?

Why is the asterisk there. What is the difference between this declaration and this:

int array[9];

推荐答案

它是一个指向整数的指针的数组.(数组大小为9个元素.索引:0-8)

It's an array of pointers to an integer. (array size is 9 elements. Indexes: 0 - 8)

这也可以说是一个整数指针数组.

This can also be stated as being an array of integer pointers.

int数组[9] ,是一个整数数组.

这篇关于* array []是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆