S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What is the use of the as keyword?

  • (A) Module import
  • (B) Type casting
  • (C) Defining constants
  • (D) Loop control
  • Correct Answer - Option(B)
  • Views: 7
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
The as keyword is used to cast between primitive types.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.