educative.io

How arrrays are stored in memory

They say that arrays are dynamically allocated …what does this mean. As far as I know, arrays are fixed lenght, their size is known upon creation and the allocated memory should therefore be fixed as opposed to being dynamically allocated.

Hi @Stanley_Makori,

The size remains fixed. Here dynamically allocated means objects, classes, and primitives are allocated at runtime instead of at compile time.