S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method on a String adds a character to the end?

  • (A) add_char()
  • (B) insert()
  • (C) push()
  • (D) append()
  • Correct Answer - Option(C)
  • Views: 3
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
push() adds a single character to the end of a String.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.