Beginner Rust
Q21 / 100

What is Box<T>?

Correct! Well done.

Incorrect.

The correct answer is B) A heap-allocated smart pointer providing unique ownership of a value

B

Correct Answer

A heap-allocated smart pointer providing unique ownership of a value

Explanation

Box<T> puts T on the heap. Use Box when you need a heap allocation, a trait object (Box<dyn Trait>), or a recursive data type.

Progress
21/100