- The function certainly needs to take an array of integers as one of
its parameters, since this is what it operates upon.
- The function must also take the size of the array as a
second parameter. We'll explain this better in a moment, but since the
function has no other way of knowing the size of its array parameter,
we must tell it somehow.
- The function must return an integer as a result. After all, we
are adding up an array of integers.
Return to lesson.