A

Admin • 828.03K Points
Coach

Q. What does `String::new()` return?

  • (A) An empty string
  • (B) A static string
  • (C) A null pointer
  • (D) A formatted string
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
`String::new()` creates a new, empty String.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.