notes memory locations to the program for array in case the required number of memory cells exceeds the available memory the operating system returns an error code to the program that made the request memory allocation to one-dimensional array one dimensional array is list of finite number of homogeneous data elements ( data elements of the same typesuch that the elements of the array are referenced respectively by an index set consisting of consecutive numbers the elements of the array are stored respectively in successive memory locations the number of elements is called the length or size of the array if not explicitly statedwe will assume the index set consists of the integers in generalthe length or the number of data elements of the array can be obtained from the index set by the formula length ub lb ( whereub is the largest indexcalled the upper bound and lb is the smallest indexcalled the lower boundof the array note note that length ub when lb the elements of an array may be denoted by the subscript notation [ ] [ ] [ ] [nin general linear array with subscript lower bound of "onecan be represented pictorially as in figure given below lb [ if words are allocated for each element or node ( size of data types of elements of array is )then total memory space allocated to array is given bymemory space request (ub lb )* ( if we want to calculate the memory space required for first - elements of an array then slight modification in formula ( will be needed space required ( lb )* lovely professional university