C++20 sections · 1024 units
Open in CourseQuiz: References
Knowledge check
Check Your Understanding
What happens with: for (auto [x, y] : vec) { x++; } on vector<pair<int,int>>?
- A.Increments first element of each pair in vec
- B.Increments only the first pair
- C.Compilation error
- D.Increments a copy, vec stays unchanged