Please kindly execute and give the output without errors for each and every question. Last time when I gave you there are lot of errors in it.
1. write a function template arraySum () that accepts an array and the number of values stored in it and returns the sum of those values.
2. write a function template arrayMaxMin () that accepts an array and passes back the maximum and minimum of those values.
3. write a recursive function that returns the number of digits in a nonnegative integer.
4. write a nonrecursive function that returns the number of digits in a nonnegative integer.