Intermediate Rust
Q47 / 100

What is unsafe Rust?

Correct! Well done.

Incorrect.

The correct answer is B) Code in an unsafe block that opts out of some borrow checker guarantees, enabling raw pointer dereference, calling unsafe functions, etc.

B

Correct Answer

Code in an unsafe block that opts out of some borrow checker guarantees, enabling raw pointer dereference, calling unsafe functions, etc.

Explanation

unsafe { *raw_ptr } allows raw pointer dereference. Use unsafe for FFI, performance-critical code, and implementing safe abstractions. The programmer assumes correctness.

Progress
47/100