Summary
Section 7.1 Introduction
Section 7.2 array
s
An
array
is a consecutive group of memory locations that share the same type.Each
array
knows its own size, which can be determined by calling itssize
member function (p. 285).To refer to a particular location or element in an
array
, we specify the name of thearray
(p. 285) and the position number of the particular element in thearray
.A program refers to any one of an
array
’s elements by giving the name of thearray
followed by the index
Get C++ How to Program, 10/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.