I am trying to find the \'biggest\' element in a user made array ,by using the max function from the algorithm library/header.
I have done some research on the cplusplus
You can also use std::array by #include
std::array
#include
#include #include #include using namespace std; int main() { array arr; int n = 10; for (int i = 0; i < n; i++) { arr[i] = i; } arr[5] = 5000; cout<<"Max: "<< *max_element(arr.begin(),arr.end())<
More info on std::array