Puzzle 17: How Long is a Vector?

Let’s find out how vectors work in Rust by solving this puzzle.

We'll cover the following

Guess the output

Before moving on to the explanation, try to guess the output of the following program. Good luck!

Get hands-on with 1400+ tech skills courses.