I was reading http://www.tutorialspoint.com/cplusplus/cpp_passing_arrays_to_functions.htm and the first method it recommends in passing an array to a function is to pass it as a pointer:
void myFunction(int *myArray) {
.
.
.
}
Wouldn't this not work, because it's impossible to determine the length of myArray
in myFunction
?