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
Q4: Use the delete operator only on pointers
Q7: When you work with a dereferenced pointer,
Q8: A pointer with the value 0 (zero)
Q8: Every byte in the computer's memory is
Q10: Look at the following statement. int *ptr;<br>In
Q11: When this is placed in front of
Q26: What will the following code output? int
Q28: With pointer variables you can _ manipulate
Q30: Which of the following statements deletes memory
Q38: An array name is a pointer constant