Exercises

We'll cover the following...

Exercise 1

Technical Quiz
1.

What is true about the following program?

fn main() {
    let name = {
        "Michael"
    };
    println!("My name is {}", name);
}
A.

It wouldn’t compile

B.

It displays

My name is “{Michael}”

C.

It displays

My name is “Michael”

D.

It displays

My name is Michael


1 / 1

Exercise 2

Add the closing pair to all of the unclosed symbols:

Press + to interact
Rust 1.40.0
fn main( {
println!("4 + 5 == {}, {{ 4 + 5

Exercise 3

...