A

Admin • 825.56K Points
Coach

Q. What is the type of array `[1, 2, 3]` in Rust?

  • (A) Vec<i32>
  • (B) [i32]
  • (C) [i32; 3]
  • (D) array<i32>
  • Correct Answer - Option(C)
  • Views: 7
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
`[i32; 3]` represents an array with 3 `i32` elements.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.