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...

____________________ risk is the amount of risk left over after countermeasures are implemented.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Define and initialize an array that contains the names of the days of the week.

What will be an ideal response?

Computer Science & Information Technology

Slide libraries are often used in businesses so that coworkers can share slides that are commonly needed.

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

Computer Science & Information Technology

The ________ sign should be put around dates so that Access knows they are dates.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology