August 2024
Intermediate to advanced
516 pages
11h 47m
English
The array is one of the most basic data structures in computer science. I assume you’ve worked with arrays before, so you’re aware that an array is a list of data elements. The array is versatile and can serve as a useful tool in many situations, but let’s take a look at one quick example.
If you’re looking at the source code for an application that allows users to create and use shopping lists for the grocery store, you might find code like this:
| | array = ["apples", "bananas", "cucumbers", "dates", "elderberries"] |
This array happens to contain five strings, each representing something that I might buy at the supermarket. (You’ve got to try elderberries.)
Arrays come with their own technical jargon. ...
Read now
Unlock full access