Chapter 6. Arrays and tables
We are beginning to realize that there is a need to be able to store and manipulate multiple values in a program. If there are relatively few values, simple variables can possibly be used, but consider the following example.
Suppose we have several hundred scores between 0 and 19 which have to be analyzed for frequency of occurrence of each score. We could set up 20 counters, one for each score. As the scores are read in, the counter corresponding to the score could be incremented. It would be very unwieldy ...