sizeof?

That is the reason why you need to pass the size of an array, or the number of elements into it, when passing an array to a function.