February 2022
Intermediate to advanced
140 pages
2h 28m
English
| Puzzle 12 | Amnesia |
| | fn main() { |
| | loop { |
| | let buffer = (0..1000).collect::<Vec<u32>>(); |
| | std::mem::forget(buffer); |
| | print!("."); |
| | } |
| | } |
Guess the Output | |
|---|---|
|
|
Try to guess what the output is before moving to the next page. |
The program will display the following output, forever:
| | . |
The program running endlessly isn’t surprising since the program loops forever without a break to stop the loop. The surprise comes ...
Read now
Unlock full access