// Pantea Aria // Multi-File Programs // Another program that reuses the same // array_functions module. // Every program has exactly one main function // This is where the program starts and where we // call functions from our modules. // // To compile the program: // dcc -o another_mfp another_mfp.c array_functions.c // // To run: // ./another_mfp #include // Include our own header file #include "array_functions.h" #define MAX_SIZE 4 int main(void) { int numbers[MAX_SIZE] = {2, 4, 6, 8}; int total = sum_array(MAX_SIZE, numbers); if (total == 20) { printf("Correct sum!\n"); } else { printf("Something went wrong\n"); } return 0; }