Member-only story

Arrays: An Essential Programming Data Structure

An essential data structure

--

An array is store of the same type of data. Now, not every programming language is zero indexed, but pretty much every one that you might use is. So if you’re not sure what a zero indexed array is this is the article for you! We will explore arrays, and what it means for you as a programmer.

Programming with Arrays

An essential data structure

An array is store of the same type of data. Now, not every programming language is zero indexed, but pretty much every one that you might use is. So if you’re not sure what a zero indexed array is this is the article for you! We will explore arrays, and what it means for you as a programmer.

Prerequisites:

The article is supported by a video

Terminology

Array: An ordered series of objects which are the same type

Contiguous: Connected or touching

Equality: The state of being equal

Integer: A number that has no fractional part, that is no digits after the decimal point

String: A collection of Characters

Subscript: A shortcut for accessing the members in an array (or any collection or list, depending on the language)

Type: A representation of the type of data that can be processed, for example Integer or String

Arrays

In this tutorial we store Strings into an array (although you could store different data types and the same principles below would apply).

Say we want to add four elements: a, b, c, and d into an array of String.

We will call the following array arr

--

--

No responses yet

Write a response