maxelem1.cpp

We use cookies. Read the Privacy and Cookie Policy

maxelem1.cpp

#include ‹stl.h›

#include ‹iostream.h›

int numbers[6] = {4, 10, 56, 11, -42, 19};

int main() {

 cout ‹‹ *max_element(numbers, numbers + 6) ‹‹ endl;

 return 0;

}