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: 4 5 1 1 1 2 3 4
b. values: 5 1 1 1 2 3 4 4
c. values: 1 1 1 2 3 4 4 5
d. values: 1 1 2 3 4 4 5 1


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

Computer Science & Information Technology

You might also like to view...

Large organizations were the first to take on the challenge of implementing enterprise resource planning (ERP).

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Consider compressing files larger than _____ before you attach them.

A. 1 Mb B. 2 Mb C. 3 Mb D. 5 Mb

Computer Science & Information Technology

Identify the correct answer from the list of choices.

A. A protocol that encrypts data B. A P2P file sharing protocol C. Search site that uses Yahoo's search engine D. The Web operates according to the standards E. A programming and scripting language

Computer Science & Information Technology

A hard drive that uses FDE is often referred to as a(n) ____.

A. full hard drive B. tracked hard drive C. spiked hard drive D. self-encrypting hard drive

Computer Science & Information Technology