In C++, an array must be declared with a size and initialized using curly braces { }.
int a[3] = {1, 2, 3};
This statement:
Declares an array of 3 integers
Correctly initializes all elements
Why other options are wrong
A) int a = {1,2,3}; ❌ → a is not an array
B) int a[3] = 1,2,3; ❌ → Missing { }
D) int a(3) = {1,2,3}; ❌ → Invalid array syntax
Correct Answer: C) int a[3] = {1,2,3};