THE READING COURSE / C17C,
C,
understood.
A calm, detailed route through C: types, expressions, arrays, functions, pointers, memory, structures, and streams. Each chapter explains the underlying rule and walks through a complete original example. Read for the model first; the code makes the model concrete.
Begin with C's model21 long chapters3 reference appendices0 read in this browser
THE COMPLETE ROUTE
Six parts. One precise language.
01 / 06
The language
01What a C program isRead translation, functions, headers, and the path from source to behavior.LONG READ ↗02Objects, types, and valuesUnderstand declarations, integer ranges, initialization, and const-qualified views.LONG READ ↗03Expressions and conversionsFollow arithmetic, comparisons, integer division, precedence, and overflow.LONG READ ↗04Decisions and loopsRead if, switch, for, while, and loop exits as explicit control flow.LONG READ ↗
02 / 06
Data and functions
05Arrays and boundsUnderstand contiguous elements, zero-based indexes, and why a pointer is not a length.LONG READ ↗06Strings and character dataRead null termination, buffer capacity, text comparison, and encoding boundaries.LONG READ ↗07Functions and recursionUnderstand prototypes, calls by value, return types, and recursive state.LONG READ ↗08Scope and storage durationSeparate where a name is visible from how long its object exists.LONG READ ↗
03 / 06
Memory and pointers
09Pointers and addressesUnderstand an address as a typed way to refer to an existing object.LONG READ ↗10Pointer arithmetic and array viewsKnow when moving a pointer is defined and where the one-past boundary lies.LONG READ ↗11Dynamic memory and ownershipRead malloc, realloc, free, allocation failure, and lifetime obligations.LONG READ ↗12Pointers to pointers and functionsDistinguish arrays of pointers, pointer-to-array types, and callbacks.LONG READ ↗
04 / 06
Program structure
13Structures and recordsModel related fields, copying, member access, and arrays of records.LONG READ ↗14Unions, enums, and bit fieldsRepresent alternatives and compact state without confusing storage with meaning.LONG READ ↗15The preprocessor and headersRead includes, macros, conditional compilation, and header boundaries.LONG READ ↗16Translation units and interfacesUnderstand separate compilation, linkage, prototypes, and command-line entry points.LONG READ ↗
05 / 06
Input, output, and safety
17Output and format contractsRead printf, puts, stderr, conversions, and return values as a contract.LONG READ ↗18Input and parsingTreat input as text to bound, convert, and validate before use.LONG READ ↗19Files and streamsUnderstand fopen, read/write counts, EOF, positioning, and resource cleanup.LONG READ ↗20C at the operating-system boundaryDistinguish portable C streams from POSIX descriptors, partial reads, and system calls.LONG READ ↗21Portability and undefined behaviorKnow which behavior C guarantees and where a program must supply a proof.LONG READ ↗
06 / 06
Reference notes
22Appendix A · Reading declarationsDecode types, qualifiers, arrays, pointers, functions, and linkage from the identifier outward.LONG READ ↗23Appendix B · The standard libraryPlace headers, strings, memory, diagnostics, and time in a coherent library map.LONG READ ↗24Appendix C · C editions and reading old codeUse an older text for its core ideas while recognizing later standard changes.LONG READ ↗
Built with curiosity. By Navan Sami. ↗C · Types, memory, and the rules behind the code.