A

Admin • 802.91K Points
Coach

Q. Which of the following is true about the `Box<T>` type?

  • (A) Stores data on the stack
  • (B) Provides multiple ownership
  • (C) Allocates data on the heap
  • (D) Is a primitive type
  • Correct Answer - Option(C)
  • Views: 5
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
`Box<T>` allocates its contents on the heap.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.