Dynamic structure
A data structure that can grow or shrink while the program runs. One with a fixed size is called static.
Example
A 3-node linked list gets 1,000 more hooked on one at a time. A 10-slot array, on the other hand, is static.
Test yourself: Dynamic structure
Types of structures
An array can't grow in any way after it's created.
You can ask for a new one, for example with 20 slots, copy the old 10 and carry on. Copying costs, but it's possible.
0/1
â–¶ Play