C++20 sections · 1024 units
Open in Course

Quiz: Pair Access

Knowledge check

Check Your Understanding

Given pair<int, string> p(42, "test"), what does p.second return?

  1. A.42
  2. B.The address of the string
  3. C.A pair containing 42 and "test"
  4. D."test"
Start the roadmap to answer the quizzes and solve the challenges