A

Admin • 833.24K Points
Coach

Q. Which is the correct way to define a tuple in Rust?

  • (A) [1, 2]
  • (B) {1, 2}
  • (C) (1, 2)
  • (D) <1, 2>
  • Correct Answer - Option(C)
  • Views: 20
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin

Tuples are defined using parentheses, e.g., `(1, 2)`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.