When applied to a reference type, the result is the size
of the referenced type
. When applied to a class, the result is the number of bytes in an object
of that class including any padding required for placing objects of that
type in an array
. The result of applying
sizeof to a
potentially-overlapping subobject is
the size of the type, not the size of the subobject
. When applied to an array, the result is the total number of bytes in the
array
. This implies that the size of an array of
n elements is
n times the size of an element
.