Difference between revisions of "Array"

From Computer History Wiki
Jump to: navigation, search
(An OK start)
 
m (+cat)
Line 2: Line 2:
  
 
Given the naming system normally used for [[main memory]] (itself usually a large array), single-dimension arrays are quite simple to provide - a [[base address]] is added to the index (often through use of an [[index register]]) to give the [[address]] of the desired array element.
 
Given the naming system normally used for [[main memory]] (itself usually a large array), single-dimension arrays are quite simple to provide - a [[base address]] is added to the index (often through use of an [[index register]]) to give the [[address]] of the desired array element.
 +
 +
{{semi-stub}}
 +
 +
[[Category: Hardware Basics‎‎]]

Revision as of 04:20, 13 December 2018

An array is a collection of identical data items (either 'primitive' types such as integers, or constructed types such as structures), often called the elements of the array, one of which can be selected by one or more (depending on how many dimensions there are in the array) index variables.

Given the naming system normally used for main memory (itself usually a large array), single-dimension arrays are quite simple to provide - a base address is added to the index (often through use of an index register) to give the address of the desired array element.