C++ Programming Code Examples C++ > Arrays and Matrices Code Examples Accessing Array Elements Accessing Array Elements Array index starts with 0, which means the first array element is at index 0, second is at index 1 and so on. We can use this information to display the array elements. See the code below: #include <iostream> using namespace std; int main(){ int arr[] = {13, 23, 33, 44, 58}; cout<<arr[0]<<endl; cout<<arr[1]<<endl; cout<<arr[2]<<endl; cout<<arr[3]<<endl; cout<<arr[4]<<endl; return 0; }