Beginner Rust
Q6 / 100

What is a reference in Rust?

Correct! Well done.

Incorrect.

The correct answer is B) A pointer to a value that does not own the data, allowing access without taking ownership

B

Correct Answer

A pointer to a value that does not own the data, allowing access without taking ownership

Explanation

&T is an immutable reference; &mut T is a mutable reference. References are guaranteed to be valid (non-dangling) by the borrow checker.

Progress
6/100