- Exercise

In this lesson, we'll solve an exercise related to std::for_each.

We'll cover the following

Problem statement #

Calculate the mean of an std::vector and an std::array with std::for_each.

Get hands-on with 1200+ tech skills courses.