Write a program to identify maximum number using parameterized function
Answers
Answered by
1
Answer:
Explanation:
void function( int arr[100], int s)
{ int max, i, j;
max=arr[0];
for(i=1;i<s;i++)
{ if(max<arr[i])
{ max=arr[i];
}
}
cout<<"\nMAXIMUM NUMBER IS "<<max;
}
Similar questions
Math,
5 months ago
Biology,
5 months ago
Science,
5 months ago
Chemistry,
11 months ago
Biology,
11 months ago
Physics,
1 year ago
Social Sciences,
1 year ago
India Languages,
1 year ago