at() – get element by index

#include <iostream>
#include <array>
using namespace std;

int main() {
    array<int, 9> myArray[] = {1, 2, 3, 4, 5, 6, 7, 8, 9};

    cout << myArray->at(4) << endl;

    return 0;
}
Output
5