Lessons
Topics covered
- What arrays are and why they are useful
- Declaring and sizing arrays
- Arrays in memory — contiguous storage
Topics covered
- Zero-based indexing
- Reading and writing individual elements
- Out-of-bounds access and undefined behaviour
Topics covered
- Initialising arrays at declaration with brace syntax
- Partial initialisation and zero-filling
- Assigning values using loops
Topics covered
- Iterating over arrays with for loops
- Finding sum, average, min and max
- Searching and sorting arrays
Topics covered
- Passing arrays to functions (passed by pointer)
- Passing the array size as a parameter
- Modifying array contents inside a function
Topics covered
- Declaring 2D arrays (rows and columns)
- Accessing elements with two indices
- Visualising 2D arrays as tables/matrices
Topics covered
- Passing 2D arrays to functions
- Specifying column size in function parameters
- Processing 2D arrays with nested loops inside functions
Topics covered
- Iterating over 2D arrays with nested for loops
- Row and column sums
- Matrix addition and transposition
Topics covered
- Arrays of C-style strings (char arrays)
- Declaring and accessing 2D character arrays
- Common string operations on 2D arrays