Answered You can hire a professional tutor to get the answer.

QUESTION

C++Write template function called sumSmall that takes an array of type T* and length as

C++

Write template function called sumSmall that takes an array of type T* and length as

parameters. What type should it return?In the function, sum all values THAT ARE LESS THAN 10. In other words, if the value is 10 or greater, ignore it when computing the sum.Return the sum of the numbers.Test with an array of ints where at least one of the values is greater than 10. Use sizeof to compute the number of elements in this and the following arrays.Test with an array of doubles where at least one of the values is greater than 10.Test with an array of longs where ALL the values are greater than 10.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question