Puzzle 11: Explanation
Let’s find out how stacks and heaps work in Rust.
Test it out
Hit “Run” to see the code’s output. The answer depends on how we run the program.
Debug mode
Pressing “Run” will cause the program to crash and display an error message:
Get hands-on with 1400+ tech skills courses.