Q17
What is the output of the following code snippet in C++? int arr[] = 1, 2, 3, 4, 5; cout << arr[5];
A.
5
B.
0
C.
Compilation error
D.
Undefined behavior
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board