Login and Register ×
Check your Email for the OTP
Array in C++ Array in C++
⚠ Report ✓ Question Verified Copy Link
int a[3] = {10, 20, 30}; cout << a[1];
Explanation:
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
Related Topic:
Share Above MCQ
Learn More MCQ Questions from Array in C++ Array in C++