Maximum Element of Array#11424

Maximum Element of Array

1 Sekunde
256 Megabyte
Sehr leicht

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.

Eingabe

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

Ausgabe

The function returns the largest element of the array.

Notiz

The testing is implemented in C++.