EXERCISES ON ARRAYS



 1. (a)  What happens if you declare an array with 
            #define N 1000
            int a[N];

    (b)  What happens if you declare an array with 
            #define N 1000
            int a[N*N];

    (c)  What happens if you declare an array with 
           #define N 1000
           int a[N*N*N];


 2. What is in a[8] after the following code is executed?

          for (i = 0; i < 10; i++)
             a[i] = 9 - i;
          for (i = 0; i < 10; i++)
             a[i] = a[a[i]];


The rest of the array exercises are in "Notes on Arrays."