- Exercise
In this lesson, we'll solve an exercise.
Problem Statement
Write two sum
functions which use the fold expressions to add all the values passed as arguments:
- One function without an initial value.
- One function with an initial value.
Get hands-on with 1300+ tech skills courses.