In this video, we're going to look at another example of a function that sums the elements of an array. In the previous video, we used pointer arithmetic to access the array elements. However in this video, we're going to use indexing instead of an explicit pointer. We begin in much the same way, declaring and initializing the array data and calling the summary function. We pass in data which points at the first element of the array and 4 as the number of elements. We declare and initialize answer to 0, and we begin a for loop i = 0. And we are going to take answer += array at i, that is, array [0], which would be the first element of array. So we add 4 to answer just like we did in the previous video. We go around the loop another time, incrementing i, so it is now 1. Then we're going to do answer += array[i], which is the box with 6. So, answer is 4 + 6, which is 10. We go around the loop again, incrementing i to 2, array[i] is array at 2, which is the box with 8. So we add 8 to the answer for 18. We go around the loop one more time, array[i] is the box with 3. So we add 3 to answer. Incrementing i again, we see we are finished with our loop. Then we return our answer, 21, back to main and destroy sumArray's frame so the parameters and variables in it are going to go away. We print our answer, which is 21, and we return.