/* * Read values and print them in reverse order using functions. */ #include #include #define MAXVALS 100 /* max number of values we can reverse */ int main() { int tableFill(int a[], int max); void tablePrintRev(int a[], int max); int table[MAXVALS]; /* array to hold input values */ int n; /* number of values in "table" */ n = tableFill(table, MAXVALS); tablePrintRev(table, n); return EXIT_SUCCESS; }