#includeIn the first example, `std::array::end` is used in a loop to print out the values stored in the array. The loop starts at `arr.begin()` and continues until it reaches `arr.end()`. The `*it` expression dereferences the iterator, giving us the value of the current element in the loop. In the second example, `std::array::end` is used to calculate the size of the array. By subtracting `arr.begin()` from `arr.end()`, we can get the number of elements in the array. The `std::array` container and its associated functions are part of the STL (Standard Template Library) package in C++.#include int main() { std::array arr = {1, 2, 3, 4}; // Iterating through an array using std::array::end for (auto it = arr.begin(); it != arr.end(); ++it) { std::cout << *it << " "; } std::cout << std::endl; // Using std::array::end to get the size of the array std::cout << "Size of arr: " << (arr.end() - arr.begin()) << std::endl; return 0; }