C++20 sections · 1024 units
Open in Course

Quiz: Map Insertion

Knowledge check

Check Your Understanding

What happens if you write m["alice"] = 5 when "alice" already exists with value 3?

  1. A.The value becomes 5, overwriting 3
  2. B.Compilation error
  3. C.Nothing changes, insertion is ignored
  4. D.Runtime error
Start the roadmap to answer the quizzes and solve the challenges