Q37
What is the correct syntax for declaring an array of 5 integers in C++?
A.
int arr{} = {1, 2, 3, 4, 5};
B.
int[] arr = new int[5];
C.
int arr[] = {1, 2, 3, 4, 5};
D.
int arr[5];
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board