Prior to this, as I understand it: this is actually a pointer, and it will sequentially point to 10 elements in memory.
This is wrong, this is an array. It has a specific memory location and can contain 10 integers. With a pointer, you can do a = &some_int , however this does not work for arrays. If you pass a function to a waiting pointer, it will fade out (converted to) the pointer, but that's different.
But, today, when my teacher tach me, he said: he will have an array of pointer, and each pointer points to its value.
This is also not true, it is an array of 10 integers. To have 10 integer pointers, you need to define it as int *a[10] . However, the elements do not indicate their meanings.
source share