Intermediate LevelPOINTERS · C TrackCompiler: gcc -std=c17 -O2
C Pointers & C Strings
Null-terminated character arrays, pointer arithmetic, and dereferencing.
Exercises:2 Practice Labs
All C ModulesPointers Coding Labs (2)Click any card to start in laboratory
Lab #01 · C Strings
Easy8 mins
08. C-Strings (char[]), strlen & Null Terminators
Work with null-terminated `\0` char arrays in standard C.
Objective: Write a function `size_t my_strlen(const char *str)` that counts characters until the null terminator `\0`.
Interactive SandboxStart Lab
Lab #02 · Pointers
Medium12 mins
09. Pointer Arithmetic & Memory Offsets
Step through memory arrays using raw pointer arithmetic `*(ptr + i)`.
Objective: Reverse an array of 5 integers in-place using two pointers (left and right).
Interactive SandboxStart Lab