Multiple Choice
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
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q26: To help prevent memory leaks from occurring
Q27: The weak_ptr can share ownership of a
Q28: With pointer variables you can _ manipulate
Q29: The following statement _ cin >> *num3;<br>A)
Q30: Which of the following statements deletes memory
Q32: The _ and _ operators can be
Q33: The unique_ptr is the sole owner of
Q34: To use any of the smart pointers
Q35: A pointer variable is designed to store<br>A)
Q36: An array name is a pointer constant