VMS Help  —  CC  Language topics, Data Types, Array
  An array is an aggregate of subscripted elements of the same type.
  Elements of an array can have one of the fundamental data types or
  can be structures, unions, or other arrays (multidimensional
  arrays).  An array is declared using square brackets.  The
  following example declares array1 to be an array of 10 integers.
  The valid subscripts for array1 range from 0 to 9.

       int array1[10];

  The next example declares array2 to be a two-dimensional (2 by 3)
  array of integers:

       int array2[2][3];

  The elements are stored in row-major order as follows:

       array2[0][0], array2[0][1], ...  array2[1][2].
Close Help