Dear All,
Kindly help me regarding this questoin of C++(OOP).

Write a template function that returns the average of all the elements of an array. The
arguments to the function should be the array name and the size of the array (type int). In
main(), exercise the function with arrays of type int, long, double, and char.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.