11.13 — For-each loops
In lesson , we showed examples where we used a for loop to iterate through each element of an array. For example: #include <iostream> #include <iterator> // std::size int main() { constexpr int scores[]{ 84, 92, 76, 81, 56 }; constexpr int numStudents{ std::size(scores) }; int maxScore{ 0 }; // …