int a[3] = {10, 20, 30}; cout << a[1];
In C++, array indexing starts from 0.
int a[3] = {10, 20, 30};
Index-wise values:
a[0] = 10
a[1] = 20
a[2] = 30
The statement:
cout << a[1];
prints the value at index 1, which is 20.
Correct Answer: B) 20