In the following program you can find maximum value of an array:
#include <iostream>
using namespace std;
int min(int*, int);
int main()
{
int array[]={66,44,88,11,77,33,99,55,22};
cout<< "min(array,9)=" << min(array,9);
}
int min(int* array, int n)
{
int m=array[0];
for(int i=1;i<n;i++)
if (array[i]>m) m=array[i];
return m;
}
#include <iostream>
using namespace std;
int min(int*, int);
int main()
{
int array[]={66,44,88,11,77,33,99,55,22};
cout<< "min(array,9)=" << min(array,9);
}
int min(int* array, int n)
{
int m=array[0];
for(int i=1;i<n;i++)
if (array[i]>m) m=array[i];
return m;
}
Casino - Mapyro
ReplyDeleteCasino is a 고양 출장샵 hotel and casino located on the Qualla Reservation in 여수 출장안마 Paradise, Nevada, USA. The 구리 출장안마 property is owned by Vici 시흥 출장마사지 Properties and is owned by Caesars 김천 출장샵