Beginner Rust
Q3 / 100

What is ownership in Rust?

Correct! Well done.

Incorrect.

The correct answer is B) A set of rules governing when memory is allocated and freed: each value has exactly one owner; the value is dropped when the owner goes out of scope

B

Correct Answer

A set of rules governing when memory is allocated and freed: each value has exactly one owner; the value is dropped when the owner goes out of scope

Explanation

Rust's ownership model: each value has one owner. When the owner goes out of scope, the value is dropped (memory freed). Ownership can be moved but not copied by default.

Progress
3/100