What is the printout of the following code?

```
int values[] = {1, 2, 3, 4, 4, 5, 1, 1};
rotate(values, values + 5, values + 8);

ostream_iterator output(cout, " ");
cout << "values: ";
copy(values, values + 8, output);
```

a. values: 1 1 2 3 4 4 5 1
b. values: 1 1 1 2 3 4 4 5
c. values: 4 5 1 1 1 2 3 4
d. values: 5 1 1 1 2 3 4 4

d. values: 5 1 1 1 2 3 4 4

Computer Science & Information Technology

You might also like to view...

The initial table created with the Draw Table option has ________ cell

Fill in the blank(s) with correct word

Computer Science & Information Technology

To unlock all of the controls, ____-click the form, and then click Lock Controls on the context menu.

A. double B. triple C. left D. right

Computer Science & Information Technology