August 2020
Intermediate to advanced
656 pages
16h 15m
English

High-level language abstractions hide how the machine deals with composite data types (a complex data type composed of smaller data objects). Although these abstractions are often convenient, if you don’t understand the details behind them you might inadvertently use a construct that generates unnecessary code or runs slower than need be. In this chapter, we’ll take a look at one of the most important composite data types: the array. We’ll consider the following topics:
The definition of an array
How to declare arrays in various languages
How arrays are represented in memory
Accessing elements of arrays
Declaring, representing, ...