July 2000
Intermediate to advanced
1280 pages
34h 55m
English
An array is a set of elements of the same data type. One can visualize an array as a set of contiguous memory locations. These locations are all of the same size and represent components of the same type. We can define arrays of integers, or floating point values, or characters, or any programmer-defined type as long as this type is known at the place in the source code where the array is being defined.
The ordinary variables we studied in Chapter 3, "Working with C++ Data and Expressions," are called scalars or atomic variables (simple variables).
They are characterized by a single value. Sometimes you might want to distinguish between different components of the value, for example, ...
Read now
Unlock full access