Beginner Rust
Q39 / 100

What is monomorphization?

Correct! Well done.

Incorrect.

The correct answer is B) The compiler generating concrete implementations of generic code for each concrete type used

B

Correct Answer

The compiler generating concrete implementations of generic code for each concrete type used

Explanation

When you use Vec<i32> and Vec<String>, Rust compiles two separate Vec implementations. This makes generics zero-cost but can increase binary size.

Progress
39/100