#include #include #define SIZE 1024 /* Notice that all variables are externals. We'll talk about how to declare local variables later. */ int n; // Size of array int i; // Loop control variable int list[SIZE]; // The array int main() { printf ("Enter number of elements: "); scanf ("%d", &n); printf ("Enter elements one per line:\n"); for (i = 0; i < n; i++) { scanf ("%d", &list[i]); } // Print array in reverse for (i = n - 1; i >= 0; i--) { printf ("%d\n", list[i]); } exit (0); }