I have two pointer variables in my main function: largest\_ptr and smallest\_ptr.
The task is to call the find\_max\_min() function to assign the largest and smallest elements within two arrays (both global) to the respective pointers. 

```
void find_min_max(uint8_t* a, uint8_t* b); //function declaration

uint8_t array1[] = { <some values> };  
uint8_t array2[] = { <some values> };  

int main(void)
{
  uint8_t* largest_ptr;
  uint8_t* smallest_ptr;
  find_min_max(largest_ptr, smallest_ptr); //this does not assign any addresses

}

void find_min_max(uint8_t* largest, uint8_t* smallest){
   //correct code to find the max/min in array1 and array2, and assign the addresses of the elements to largest and smallest
}

```

I tried debugging my find\_min\_max function, and the result was correct i.e the correct values were assigned to the largest and smallest pointers. However, when I call the function in main(), the respective addresses are not assigned to largest\_ptr and smallest\_ptr. Is there anything I am doing wrong? 

P.S  

My apologies for not posting the code. This is an assignment question, and this may get detected in the plagiarism test. I am confident this is enough to explain my situation