Skip to content

9 modules · 37 tutorials

C Programming tutorials

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

Module 01

Getting Started with C

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.

  1. Introduction to C 12m
  2. Programming Fundamentals 12m
  3. Installing and Configuring the Environment 15m
  4. Structure of a C Program 14m

Module 02

Variables, Types, Input and Operators

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.

  1. Variables 13m
  2. Constants 12m
  3. Data Types 16m
  4. Input and Output 16m
  5. Operators 18m
  6. Type Conversion 14m

Module 03

Decisions and Loops

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.

  1. Conditional Statements (if, else if, else) 15m
  2. The switch Statement 13m
  3. Loops: while, do-while and for 18m
  4. Nested Loops 14m
  5. break, continue and goto 12m

Module 04

Functions, Recursion and Storage Classes

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.

  1. Functions 17m
  2. Recursion 16m
  3. Storage Classes and Scope 15m

Module 05

Arrays and Strings

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.

  1. Arrays 17m
  2. Multidimensional Arrays 15m
  3. Strings 18m

Module 06

Pointers and Memory

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.

  1. Pointers 18m
  2. Pointer Arithmetic and Arrays 15m
  3. Pointers and Functions 17m
  4. Dynamic Memory Allocation 18m
  5. Memory Management Fundamentals 15m

Module 07

Structures, Unions, Enums and typedef

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

  1. Structures 18m
  2. Unions 12m
  3. Enumerations 11m
  4. typedef 10m

Module 08

Files, the Preprocessor and Program Organisation

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

  1. File Handling 20m
  2. Preprocessor Directives 15m
  3. Header Files and Multi-File Programs 15m
  4. Command-Line Arguments 12m

Module 09

Bitwise Operations, Common Errors and Applications

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

  1. Bitwise Operations 16m
  2. Common Programming Errors 16m
  3. Practical Applications of C 18m