In BASIC, the DIM statement specifies the maximum values for array variable subscripts, and allocates storage accordingly.