Q17
Which of the following is not a valid way to initialize an array in C++?
A.
int arr[5] = {1, 2, 3, 4, 5};
B.
int arr[] = {1, 2, 3, 4, 5};
C.
int arr[5] {1, 2, 3, 4, 5};
D.
int arr[5]; arr = {1, 2, 3, 4, 5};
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board