My assignment is to use pointers to point at the highest and lowest temperatures in the array.
I need to have 3 pointer variables and start them at the beginning of the array.
Step the pCur through the array using a for loop and pCur++.
Loop through the array looking for the high and low temperatures.
Make an if statement for pLow and PHigh if their values are found then print them out.
The problem I am having here is using pCur to step through the array.
pCur++;
I have no idea what that will do and how it will help find a highest and lowest temperature.
and for the if statements for pLow and pHigh
I need to make them like this
1 2 3 4
if ( *pCur < *pLow)
{
pLow = pCur; // have pLow point at the new low temprature
}