First page Back Continue Last page Graphics
Array Ranges
Dummy arguments can receive pointers to array elements as a range.
sum_arr(cookies, cookies+3);
Do you give a pointer to the last element or a pointer to “one past” the last element.
“One Past” allows a loop to terminate when the iterating pointer is equal to the end of range pointer.
for (pt=begin; pt != end; pt++)