What will the following C++11 code display?

```
vector numbers {3, 5};
for (int val : numbers)
cout << val << endl;
```

a. 5
5
5
b. 3
3
3
3
3
c. 3
5
d. Nothing. This code has an error.

c. 3
5

Computer Science & Information Technology

You might also like to view...

A device driver is a piece of hardware designed to control a printer

Indicate whether the statement is true or false

Computer Science & Information Technology

Which of the following statements is true about a binary tree?

a. All nodes are connected b. All nodes have at least one child c. All nodes have exactly two children d. None of the above

Computer Science & Information Technology