March 2013
Intermediate to advanced
416 pages
9h 41m
English
Arrays
Contents
In Chapter 2, we discussed issues that arise if a list of items is represented using separate discrete variables. In this chapter, we see how arrays deal with these issues. We show how items are stored and manipulated as an array, and build a simple example application.
Consider the eight integers that we touched on in Chapter 2, Section 2.4. It is not efficient to declare eight separate variables with discrete identifiers; instead, make the following declaration:
int numbers[] ...