3 ms·
Linked lists are good for adding and removing elements. Variable length arrays are good for allocating a known amount of space at runtime.
by afhof 14y ago
Linked lists are good for adding and removing elements. Variable length arrays are good for allocating a known amount of space at runtime.
- tptacek 14y agoThe "variable" in "variable length" describes the fact that you don't know how much space you need, and insertions to the end of a variable-length array are very fast. I can see why you thought my comment was weird, now.