Q. What is the purpose of lifetimes in Rust?
β
Correct Answer: (C)
To ensure memory safety
Explanation: Lifetimes help Rust ensure references are valid and prevent dangling pointers.