C++20 sections · 1024 units
Open in CourseQuiz: Pair Access
Knowledge check
Check Your Understanding
Given pair<int, string> p(42, "test"), what does p.second return?
- A.42
- B.The address of the string
- C.A pair containing 42 and "test"
- D."test"
Knowledge check
Given pair<int, string> p(42, "test"), what does p.second return?