Solved

What Will the Following Code Output

Question 31

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions