S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which of the following does not own heap memory?

  • (A) Box<T>
  • (B) Vec<T>
  • (C) String
  • (D) &str
  • Correct Answer - Option(D)
  • Views: 6
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
&str is a borrowed reference, not an owner.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.