A

Admin • 802.91K Points
Coach

Q. Which of the following is a valid way to print to the console in Rust?

  • (A) echo("Hello")
  • (B) print("Hello")
  • (C) println!("Hello")
  • (D) console.log("Hello")
  • Correct Answer - Option(C)
  • Views: 3
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
Rust uses the macro 'println!' to print to the console.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.