To implement array data structure, memory bytes must be reserved and the accessing functions must be coded. In case of linear arrays, the declaration statements tell how many cells are needed to store the array. The following characteristics of the array are used to calculate the number of cells needed and to find the location or address of any element of the array.
1. The upper bound (UB) of the index range.
2. The lower bound (LB) of the index range. In C/C++, LB is zero.
3. The location in memory of the first byte in the array, called base address of the array (Base)
4. The number of memory bytes needed for each cell containing one data element in the array (size, denoted by W)
good written
ReplyDeletei m satisfy
ReplyDeletedid nt get anything :\
ReplyDeleteHelpful
ReplyDeleteSatisfactory
ReplyDelete40% satisfied
ReplyDelete