Maximum Element of Array#11424

Maximum Element of Array

1 secondo
256 megabyte
Molto facile

Write a generic function T Max_Element(T*, n) that takes an array and its size and returns the largest element of this array.

The generic function should work with any standard data type.

Input

The function receives an array and its size (1 \le n \le 100).

Output

The function returns the largest element of the array.

Nota

The testing is implemented in C++.