What will the following code output?

```
int *numbers = new int[5];
for (int i = 0; i <= 4; i++)
*(numbers + i) = i;
cout << numbers[2] << endl;
```

a. five memory addresses
b. 0
c. 3
d. 2
e. 1

d. 2

Computer Science & Information Technology

You might also like to view...

The Enforce Referential Integrity box should normally be checked

Indicate whether the statement is true or false

Computer Science & Information Technology

Which of the following is not true about sizing handles?

A) They are an easy way to copy and paste a formula. B) There are eight of them for each object. C) They look like small squares. D) They are used to change the height and width of objects.

Computer Science & Information Technology