Function Templates Exercises
In a group of 2-4 people, answer the following:
- Why do we have function templates? What is the quintessential function template?
- Write a templated function, getTotal() that adds every element of an array, and returns the total.