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
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.
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.
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.
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.
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.
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.
Grouping related data into structures, sharing storage with unions, naming integer constants with enumerations, and creating readable type names with typedef.
Reading and writing text and binary files, preprocessor directives and macros, splitting programs into headers and source files, and receiving command-line arguments.
Working with individual bits, recognising and fixing the errors that most often break C programs, and putting the whole course together in practical applications.
Projects
All 25 projectsMenu-Driven Calculator
A console calculator with seven operations, input validation and safe handling of division by zero.
BeginnerNumber Guessing Game
Guess a number from 1 to 100 in seven attempts, with hints, multiple rounds and a reproducible random generator.
IntermediateStudent Record Management System
Add, search, update, delete and sort student records stored in a growable array and saved to a binary file.
IntermediateLibrary Management System
Catalogue books, issue and return them with due dates and late fines, find overdue books, and keep everything in a text file.
AdvancedMini Shell
A command interpreter with a quote-aware tokeniser, $VARIABLE expansion, history with !N recall, built-ins and delegation to the system shell.
AdvancedMemory Allocation Simulator
Simulate malloc/free on a heap arena: block splitting, coalescing, first/best/worst-fit placement and fragmentation statistics.