#include <stdio.h>
int minimum(int *array,int length); int main() {
int array[] = {23,24,42,3,56,4,7}; int result = minimum(array,7); printf("%d\n",result);
}
int minimum(int *array,int length) { int m = array[0]; for (int i=1; i<length; i++) { if (m > array) { m = array; } return m; }
|