Skip to content

EasyConceptCollections, iterators and memory

What is the difference between Vec and an array?

What a good answer covers

Vec is growable and heap-allocated. An array has a fixed length known at compile time and usually lives on the stack.

More on Collections, iterators and memory

Flashcards for this topic