can u help me please how i can compare the values?
i really dont find a workingsolution

Code:
void test()
{
int i,t,p;
for(i=1 ; i<array_size ; i++)
{
t=i+1;	
if(array[i] < array[t])
{
p = array[i];
}
if(array[i] > array[t])
{
p = array[t];
}
}		
}



this only works with a array who have the size of 2