When an array is declared in this form, memory is allocated statically:
var
Data: array[0..5] of integer;
My question is when the array is declared as follows:
var
Data: array of integer;
....
SetLength( Data, Length( Data ) + 1 );
Is memory allocated statically or dynamically?
I think the memory is allocated statically and the array is copied to memory, but I'm not sure.
source
share