This may be a stupid question but how does the sizeof operator know the size of an array operand when you don\'t pass in the amount of elements in the array. I know it does
The compiler knows the size of each type in your application, and sizeof just requests the compiler to produce that value for you.
sizeof