A

Admin • 833.24K Points
Coach

Q. Which function is used to read user input in Rust?

  • (A) stdin.read()
  • (B) input()
  • (C) std::read()
  • (D) stdin().read_line()
  • Correct Answer - Option(D)
  • Views: 35
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin

Reading input from user typically uses `stdin().read_line()`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.