第二章数组名是一个指针常量吗?
由指针和数组定义可以看出,指针和数组是完全不同的类型。但数组名是指针吗?
Array types are characterized by their element type and by the number of elements in the array.
我们已经看到,在表达式中使用数组名时,实际上使用的是指向数组第一个元素的指针。
We have already seen that when we use an array name in an expression, we are actually using a pointer to the first element in the array.
当把数组名用作参数时,传递给函数的值是数组起始元素的位置或地址——它并不复制数组元素本身。
When the name of an array is used as an argument, the value passed to the function is the location or address of the beginning of the array - there is no copying of array elements.
将光标置于数组名上(本例中为m),单击样子为一对眼镜的按钮,speedbar会出现并显示数组的名字和类型。
Place the cursor on the array name — m, in this case — and click on the button showing a pair of glasses. If it is not present already, the speedbar should appear and display the array name and type.
将光标置于数组名上(本例中为m),单击样子为一对眼镜的按钮,speedbar会出现并显示数组的名字和类型。
Place the cursor on the array name — m, in this case — and click on the button showing a pair of glasses. If it is not present already, the speedbar should appear and display the array name and type.
应用推荐