Most of the data structures have a sizeof method that returns the number of bytes the internal data structure requires in memory.
However, especially when standard array is used, the size of the underlined elements in the array is hardcoded that is very could lead to the incorrect size estimation when we change array types.
Most of the data structures have a
sizeof
method that returns the number of bytes the internal data structure requires in memory.However, especially when standard
array
is used, the size of the underlined elements in the array is hardcoded that is very could lead to the incorrect size estimation when we change array types.