Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
There are occasions when you might need or want to use a one-dimensional array. Although there is no rule for when to use an array, some problems are better suited for an array-based solution, as demonstrated in the following list.
The number of pages in each chapter of a book
A list of students’ GPAs
Keeping track of your golf score
A list of phone numbers