Intermediate
Rust
Q48 / 100
What is a raw pointer in Rust?
Correct! Well done.
Incorrect.
The correct answer is B) *const T or *mut T — pointers without lifetime or aliasing guarantees, usable only in unsafe blocks
B
Correct Answer
*const T or *mut T — pointers without lifetime or aliasing guarantees, usable only in unsafe blocks
Explanation
Raw pointers (*const T) don't guarantee non-null or valid memory. Creating them is safe; dereferencing requires unsafe.
Progress
48/100