#includeIn this example, we create an array of integers with 5 elements and use a for loop to print out each element of the array using the "begin" and "end" functions. Package library: The "end" function is part of the C++ standard library and does not require any additional packages or libraries.#include int main() { std::array arr{1, 2, 3, 4, 5}; for (auto it = arr.begin(); it != arr.end(); ++it) { std::cout << *it << " "; } std::cout << "\n"; return 0; }