A

Admin • 833.24K Points
Coach

Q. Which keyword is used to define a mutable variable in Rust?

  • (A) let
  • (B) mut
  • (C) var
  • (D) change
  • Correct Answer - Option(B)
  • Views: 21
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin

Rust uses 'mut' to make a variable mutable; 'let' alone creates an immutable variable.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.