R

Ravina • 3.96K Points
Extraordinary

Q. Which keyword is used to return a value early from a function?

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

Explanation by: Ravina

The return keyword is used to exit a function and return a value.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.