C++20 sections · 1024 units
Open in CourseQuiz: Map Insertion
Knowledge check
Check Your Understanding
What happens if you write m["alice"] = 5 when "alice" already exists with value 3?
- A.The value becomes 5, overwriting 3
- B.Compilation error
- C.Nothing changes, insertion is ignored
- D.Runtime error