for (int i=0;i<count;i++)
{
if (*maxint<*pbuff)
{
*maxint=*pbuff;
}
if (*minint>*pbuff)
{
*minint=*pbuff;
}
pbuff++;
}
return TRUE;
}
int main()
{
int buff[10]={11,22,44,7,8,3,9,66,68,5};
int maxnumber=buff[0],minnumber=buff[0];
maxminfun(&buff[0],10,&maxnumber,&minnumber);
cout<<"The max int is:"<<maxnumber<<endl;
cout<<"The min int is:"<<minnumber<<endl;