Skip to Content
Write Great Code, Volume 2, 2nd Edition
book

Write Great Code, Volume 2, 2nd Edition

by Randall Hyde
August 2020
Intermediate to advanced
656 pages
16h 15m
English
No Starch Press
Content preview from Write Great Code, Volume 2, 2nd Edition

8ARRAY DATA TYPES

image

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, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Write Great Code, Volume 3

Write Great Code, Volume 3

Randall Hyde

Publisher Resources

ISBN: 9781098125653