Hey Kurt. Gan mentioned earlier that you can use a vector instead of an array. Vectors are easier to use because vectors can automatically resize themselves. Another thing about vectors is that the vector class has a size() method which can be called from anywhere that the vector is passed to. This means that when you pass a vector, you don't need to pass the size along with it, because the method can determine the size of the vector by calling size(). You just have to make sure to pass the vector by reference or as a pointer, because if you don't, it will automatically be passed by value.
I'm curious, why do you want the function to determine the size of the array? Why not pass the size of the array as a parameter?