Write a template function max5 that takes as its argument


Problem

Write a template function max5() that takes as its argument an array of five items of type T and returns the largest item in the array. (Because the size is fixed, it can be hard-coded into the loop instead of being passed as an argument.) Test it in a program that uses the function with an array of five int value and an array of five double values.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a template function max5 that takes as its argument
Reference No:- TGS02635191

Expected delivery within 24 Hours