Skip to content

Free · C11 (ISO/IEC 9899:2011)

C Programming

Master the language underneath operating systems and embedded devices: memory, pointers, structures, files and the build process.

37
Tutorials
25
Projects
225
Practice MCQs
9 h
Reading time

What you will learn

  • Write, compile and debug complete C programs
  • Reason precisely about types, operators and control flow
  • Use arrays, strings, pointers and dynamic memory safely
  • Model data with structures, unions and enumerations
  • Organise multi-file programs with headers and the preprocessor
  • Read and write files and handle command-line arguments

Syllabus

9 modules · 37 topics

  1. What C is and why it still matters, the core ideas behind every program, setting up a compiler and editor, and the anatomy of a C source file.

  2. How C stores data: variables, constants and the built-in types, reading and printing values with scanf and printf, the full operator set, and the rules C uses to convert between types.

  3. Making decisions with if, else-if and switch, repeating work with while, do-while and for, combining loops, and steering them with break and continue.

  4. Breaking programs into functions, how arguments are passed by value, recursion and the call stack, and the storage classes that control a variable's lifetime, scope and linkage.

  5. Storing many values in arrays, two-dimensional arrays for tables and matrices, and C strings: null-terminated character arrays and the <string.h> functions that work on them.

  6. Addresses and pointers, pointer arithmetic and its link to arrays, passing pointers to and from functions, function pointers, dynamic allocation with malloc/calloc/realloc/free, and the rules of memory management.

  7. Grouping related data into structures, sharing storage with unions, naming integer constants with enumerations, and creating readable type names with typedef.

  8. Reading and writing text and binary files, preprocessor directives and macros, splitting programs into headers and source files, and receiving command-line arguments.

  9. Working with individual bits, recognising and fixing the errors that most often break C programs, and putting the whole course together in practical applications.