Array Basics (sizeof)

sizeof() is not a function, it's an operator. In fact, you don't need to use the parentheses.

There is no way a function can know the size of the array because arrays are passed to a function by reference. That is, the function receives the memory address (lvalue) of where the array resides in memory. The only possible exception is a null terminated character array that's treated as a string.