S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which of these types implements Copy by default?

  • (A) String
  • (B) Vec<i32>
  • (C) i32
  • (D) Box<i32>
  • Correct Answer - Option(C)
  • Views: 4
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
i32 implements Copy by default, so it can be duplicated easily.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.