R

Ravina • 3.96K Points
Extraordinary

Q. Which type is used to represent a slice of data?

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

Explanation by: Ravina
A slice of data is represented by `&[T]`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.