A

Admin • 833.24K Points
Coach

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

  • (A) const
  • (B) define
  • (C) let
  • (D) static
  • Correct Answer - Option(A)
  • Views: 38
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin

`const` is used to define constants that are immutable and known at compile time.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.