Step Into C · Lesson 10 · Memory
Pointer Arithmetic
Arrays as pointers, stepping through memory, byte views and void *.
- ~30 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.
In most expressions, an array's name evaluates to the address of its first element:
In this lesson
- Arrays and pointers are close relatives
- Adding to a pointer moves by whole elements
- Walking with a pointer
- Strings with pointers
- The size of the element decides the step
- Endianness
- void * and generic code
Missions
- No brackets allowed
- Walk a string
- See the bytes
- Generic fill