Beginner Rust
Q30 / 100

What is a vector Vec<T> in Rust?

Correct! Well done.

Incorrect.

The correct answer is B) A heap-allocated, growable, type-safe array

B

Correct Answer

A heap-allocated, growable, type-safe array

Explanation

Vec<T> grows dynamically. vec![1,2,3] or Vec::new() with push(). Elements are stored contiguously on the heap.

Progress
30/100