Step Into C · Lesson 7 · Arrays & Strings
Arrays
Contiguous blocks of values, indexing, sizeof tricks and 2-D arrays.
- ~25 minreading and coding
- 4missions
- membersaccess
- Clanguage
Part of Step Into C. The full lesson, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.
An array is a fixed number of elements of the same type, stored back-to-back in memory.
In this lesson
- Many values, one name
- Indexing
- How many elements? The sizeof trick
- Arrays and functions
- Two-dimensional arrays
- Common patterns
Missions
- Count them
- Sum and max
- Reverse in place
- The grid