You can't. The array is not passed to the function, only a pointer is. And there is no way to find out how many elements a pointer points to.
You have to pass the size of the array as another parameter.
OR.. better yet... don't use arrays, and use a container class like a vector.
Mmmm that's disappointing.
Anyway, thanks for the clarification ;) !!!