#include <iostream>
#include<climits>
using namespace std;
int main() {
int nums[]={5,15,22,-1,-15,-24};
int size=6;
cin>>nums;
int largest=max_element;
for(int i=0;i<size;i++)
{
cin>>nums[i];
}
cout << "Max element index" << max_element(arr,arr+num)-arr;
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: