Respuesta :

The for (auto x: arr) statement in C++11 iterates through each element of the array variable arr.

What is array?

Since C++ 11, a range-based for loop has been included. It runs a for loop across a number of values. used as a more readable alternative to the classic for loop that operates over a range of values, such as all of the container's elements.

To create loops that must run through a range, use the range-based for statement. A range is anything you can iterate through, such as a std::vector or any other C++ Standard Library sequence whose range is determined by a begin() and end().

The range() function allows us to iterate across a set of code a predetermined number of times. The range() function returns a series of numbers that by default starts at 0 and advances by 1 before ending at a specified number.

To learn more about array refer to:

https://brainly.com/question/26104158

#SPJ4

RELAXING NOICE
Relax