OPC · C programming

Dynamic memory allocation and user-defined types in C.

ISTIC · University of Rennes · 2026–2027 · Louis Ledoux

Dynamic memory allocation

Stack and heap, malloc and free, arrays, strings, matrices, and structures.

Slides · PDF · C examples and source · Quiz

For printing, select four pages per sheet in your PDF viewer.

Run the examples

Requires Python 3, GCC, Make and Valgrind on Linux or WSL.

unzip opc-course.zip
cd opc-course
make serve

Open the local slides and click Run live C. Keep the terminal open; Ctrl+C stops the server.