Dayrvia
C++

C++ · Range-based loops · Practice questions

Try 1 question on C++ · Range-based loops, then read the explanations and review the related concepts.

Practice questions

Choose an answer and move to the next question. Grade the last one to see explanations and review links.

1 question
Q1 Which values does v contain afterwards?
std::vector<int> v{1, 2};
for (int x : v) x += 3;
Original practice questions written for Dayrvia.