O'Reilly logo

Write Great Code, Volume 2 by Randall Hyde

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Array Data Types

image with no caption

High-level language abstractions hide how the machine deals with composite data types (a complex data type built from, or composed of, smaller data objects). Although these abstractions are often convenient, if you don’t understand the details behind them you might inadvertently use some construct that generates unnecessary code or runs slower than is necessary. In this chapter, I’ll take a look at one of the most important composite data types: the array. I’ll consider the following topics:

  • The definition of an array

  • How to declare arrays in various languages

  • The memory representation of arrays

  • Accessing elements of arrays ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required