Arrays, strings and pointers
This part of the C course is the memory model at its most direct: arrays, the NUL-terminated string, the functions of ctype.h and string.h, and the pointer that ties them together. It shows how an array decays to a pointer, how pointer arithmetic walks one, and how a function pointer becomes a callback or a table of operations.
22
Arrays
declaration, initialisation, bounds, iteration, sizeof
Open
23
Strings
char arrays, the NUL terminator, literals, traversal
Open
24
Characters and ctype.h
ASCII, char signedness, isalpha, toupper
Open
25
The string.h functions
strlen, strcpy, strcat, strcmp, strstr, memcpy
Open
26
Safe string handling
bounded copies, snprintf, truncation, buffer overflows
Open
27
Pointers
addresses, dereference, NULL, pointers as out-parameters
Open
28
Pointer arithmetic and arrays
decay, pointer arithmetic, one past the end
Open
29
Function pointers
declarations, callbacks, tables of functions, qsort
Open