// Week 5 Lecture example // Every program needs exactly one main function // This is where we drive the program from // and where we make calls to our modules. We // need to inclide the header file for each // module that we want to use functions from. // To compile the whole program: // dcc -o program program.c array_utilities.c // To run // ./program #include // We need to include our header and use "" not <> #include "array_utilities.h" #define MAX_SIZE 5 int main(void) { int numbers[MAX_SIZE]; printf("Enter %d ints: ", MAX_SIZE); read_data(MAX_SIZE, numbers); print_data(MAX_SIZE, numbers); int max = find_maximum(MAX_SIZE, numbers); printf("The max is %d\n", max); return 0; }