The sizeof() an array (that was a hint) is known when the array is an array.
Arrays are not passed to functions. Pointers are. In the function, there is no way to get the length of the array that the pointer points to, unless the array contains some marker to indicate the end, as the NULL in a char array does.