C memory foundations

4 chapters · 14 lessons

No previous C knowledge is required, but familiarity with basic programming ideas helps: variables, conditions, loops, functions and arrays are introduced quickly rather than taught as a first programming course. Follow the chapters in order: they introduce C syntax, memory and pointers, ownership, and managed runtime models. The runtime examples are a substantial step up in length and assume you can follow the earlier examples; read their explanations before their full source. Examples use C11 and a hosted implementation. Diagrams are conceptual, not measured addresses or layouts. The final assessment checks conceptual understanding, not practical programming ability.

  1. Reading and running C
  2. Objects and addresses
  3. Allocation and ownership
  4. From objects to collection

Final assessment