Forse perche' manca

codice:
if(inf==sup)
{
  *min=vett[inf];
  *max=vett[sup];
  return;
}