Is C++ Array passed by reference or by pointer?
问题 In school, our lecturer taught us that the entire array was passed by reference when we pass it to a function,. However, recently I read a book. It says that arrays are passed by pointer by default when passing the entire array to a function. The book further mention that " passing by pointer is very similar to passing by reference ", which means that passing by pointer and passing by reference are actually different. It appears that different source stated differently. So my question is: In