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.
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.
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.
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.
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.
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.
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.
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.
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.