Beginner Rust
Q29 / 100

What is the println! macro?

Correct! Well done.

Incorrect.

The correct answer is B) A macro that formats and prints a string followed by a newline to stdout

B

Correct Answer

A macro that formats and prints a string followed by a newline to stdout

Explanation

println!("Value: {}", x) formats and prints to stdout with a newline. {} uses the Display trait; {:?} uses the Debug trait.

Progress
29/100