- Exercise

In this lesson, you will implement different accessing techniques of an std::array.

We'll cover the following

Task

Make of-by-one access for a std::array.

std::array allows you to access the element with the index operator [] and the at function. The at function checks the boundaries.

Write a program that violates those boundaries. Access the elements with the index operator [] and the at function.

Get hands-on with 1200+ tech skills courses.