When we pass an array, the argument is a pointer to the first element in the array. That pointer value is copied; the array elements themselves are not copied.
而在传递数组时,实参是指向数组第一个元素的指针,形参复制的是这个指针的值,而不是数组元素本身。
When we pass an array, the argument is a pointer to the first element in the array. That pointer value is copied; the array elements themselves are not copied.
而在传递数组时,实参是指向数组第一个元素的指针,形参复制的是这个指针的值,而不是数组元素本身。
应用推荐