Authors
Larry Crawford
Publication
Publication Details
Volume: 5 Issue: 3
Date
May/June 1987
Pages
7-8
See all articles from Sinc-Link v5 n3
If you create an array for the storage of data, the chances are that you will dimension the array to be as large as it might need to be some time in the future. In this way, data can be added as needed without having to worry about ‘outgrowing’ the array. However, if you are using tape for storage, SAVEs and LOADs will be time consuming because of the huge array which may be mostly empty. A neat solution is to use an array which starts out with only one element and which grows as needed to be only as large as it needs to be to hold the data.