Difference between revisions of "Structure"
From Computer History Wiki
(Stubby, but an OK start) |
(No difference)
|
Revision as of 14:14, 30 August 2018
Structures are a mechanism available in most programming languages for created a block of associated data values (usually of mixed types), effectively an extended type. Instances of the structure can then be used in some way - e.g. by being passed as an argument to a procedure.
One common use is to have an array of a particular kind of structure; without structures, the program would have to have N arrays, one for each data item in the structure.