TMath::MaxElement

I am new in root and i would like an example of how one can use TMath:MaxElement

Suppose ones have a array
Double_t a[38]

I should write
cout<<TMath:: MaxElement(38,a) ??

yes

Rene