help with program please
Code:
#including<iostream>
using namespace std;
int array[10]={3,5,2,7,8,4,6,7,4,11};
int findMax()
{
int length=array.length();
int max;
int count;
for(int i=0;i<length;i++)
{
count+=1
if(array[i]>max)
max=array[i];
}
return max;
}
int main()
{
findMax(array[10]);
}
a) create a function to find the position of the max value in the array
b) in your main function create and initialize an array, then call this findMax function to display the position of the maximum value in the array and display this value based on the position information.
I am lost and i cant figure out what i should be doing if anyone would help.

