Assuming vi is a container of ints that includes even and odd values, predict the behavior of the following loop. After you’ve analyzed this loop, write a program to test whether your expectations were correct.
iter = vi.begin();while (iter != vi.end()) if (*iter % 2) iter = vi.insert(iter, *iter);++iter;
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.