A

Admin • 802.91K Points
Coach

Q. Which keyword is used to break from a loop in Rust?

  • (A) stop
  • (B) break
  • (C) exit
  • (D) return
  • Correct Answer - Option(B)
  • Views: 4
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
`break` exits a loop immediately.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.