S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What does the drop() function do?

  • (A) Deletes a file
  • (B) Destroys a thread
  • (C) Explicitly destroys a value early
  • (D) Removes an element from a vector
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
drop() explicitly deallocates memory by calling the value’s destructor.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.