Consider the following incomplete C-program:
#include <stdio.h>
#include <stdlib.h>
int find_min(int[], int);
int main(void) {
int array[10];
/* Your code goes here */
return 0;
}
Perform the following tasks:
The first task is to ask the user to enter the elements in the array [10].
Write code in the main function to call the function find_min to compute the index of the minimum element in the array[]. Also, your code should be able to display the minimum element and its location in the array on the output screen.
Write code for the function int find_min(int[], int) that should return the index of the minimum element in the array.
Note: You are required to write comments at each step in the above tasks to provide an understanding of the C programming code.
[14 Marks]
Consider the use of pointers in the C programming, use appropriate examples to explain the following operators:
- Addressing operator
- Dereferencing operator