Beginning C pp 197-229 | Cite as


  • Ivor Horton


You’ll, often need to store many data values of a particular kind in your programs. For example, if you were writing a program to track the performance of a basketball team, then you might want to store the scores for a season of games and the scores for individual players. You could then output the scores for a particular player over the season or work out an ongoing average as the season progressed. Armed with what you’ve learned so far, you could write a program that does this using a different variable for each score. However, if there are a lot of games in the season, this will be rather tedious because you’ll need as many variables for each player as there are games. All your basketball scores are really the same kind of thing. The values are different, but they’re all basketball scores. Ideally, you would want to group these values together under a single name—perhaps the name of the player—so that you wouldn’t have to define separate variables for each item of data.


Array Element Head Size Column Index Loop Condition Type Float 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Ivor Horton 2004

Authors and Affiliations

  • Ivor Horton

There are no affiliations available

Personalised recommendations