Which statement correctly initializes an integer array with three elements in C++?
Options
- A. int a[3] = {10, 20, 30};
- B. int a = {10, 20, 30};
- C. array int a[3] = {10, 20, 30};
- D. More than one of the above
- E. None of the above
Quiz Practice:
A. int a[3] = {10, 20, 30};