S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which loop construct in Rust always executes at least once?

  • (A) for
  • (B) while
  • (C) loop
  • (D) do-while
  • Correct Answer - Option(C)
  • Views: 21
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey

loop executes indefinitely unless explicitly broken and therefore always runs at least once.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.