Development
Code
C
EN
RU
C
C course: zero to hero
From the first program to types, pointers, memory, data structures, the standard library, POSIX and capstone projects.
Open
→
All articles
c/
basics/
(1)
C basics: what the language is and where it is used
course/
(94)
C programming course: from the first program to systems programming
1. Getting started
(6)
Chapter overview
1.1 What C is and how a program becomes a binary
1.2 Install the toolchain
1.3 Your first program
1.4 Comments and code style
1.5 Variables and fundamental types
2. Types and expressions
(7)
Chapter overview
2.1 Integers, widths and limits
2.2 Floating-point numbers
2.3 Operators and precedence
2.4 Conversions and casts
2.5 Formatted input and output
2.6 Bit manipulation
3. Control flow
(6)
Chapter overview
3.1 if and else
3.2 switch
3.3 Loops
3.4 break, continue and goto
3.5 Recursion
4. Functions and builds
(6)
Chapter overview
4.1 Functions
4.2 Scope and storage
4.3 Multi-file programs
4.4 Makefiles
4.5 CMake
5. Arrays, strings and pointers
(9)
Chapter overview
5.1 Arrays
5.2 Strings
5.3 Characters and ctype.h
5.4 The string.h functions
5.5 Safe string handling
5.6 Pointers
5.7 Pointer arithmetic and arrays
5.8 Function pointers
6. Memory
(7)
Chapter overview
6.1 The stack and the heap
6.2 malloc, calloc and realloc
6.3 Memory leaks and ownership
6.4 Arenas and pools
6.5 Undefined behaviour
6.6 Sanitizers
7. Structs and data modelling
(7)
Chapter overview
7.1 Structs
7.2 Unions and bit-fields
7.3 Enumerations
7.4 const and restrict
7.5 Opaque types and objects in C
7.6 Design patterns in C
8. Preprocessor and generic code
(6)
Chapter overview
8.1 The preprocessor
8.2 Macros
8.3 Generic code
8.4 Variadic functions
8.5 Error handling
9. Data structures and algorithms
(8)
Chapter overview
9.1 Elementary sorting
9.2 Merge sort and quicksort
9.3 Linear and binary search
9.4 A dynamic array
9.5 Linked lists
9.6 A hash table
9.7 Binary search trees
10. The standard library, files and time
(8)
Chapter overview
10.1 The stdlib.h toolbox
10.2 Text files
10.3 Binary files
10.4 Directories and file metadata
10.5 Text processing
10.6 Time and clocks
10.7 Random numbers
11. Debugging, quality and modern C
(7)
Chapter overview
11.1 Debugging with gdb
11.2 Compiler flags and optimisation
11.3 Testing C code
11.4 Profiling
11.5 Build automation and CI
11.6 C23 features
12. POSIX systems programming
(10)
Chapter overview
12.1 Processes
12.2 Signals
12.3 Pipes
12.4 Sockets
12.5 A TCP server
12.6 POSIX threads
12.7 Mutexes and condition variables
12.8 Atomics and the memory model
12.9 Command-line arguments
13. Capstone projects
(6)
Chapter overview
13.1 Capstone: word frequency
13.2 Capstone: word frequency report
13.3 Capstone: a calculator parser
13.4 Capstone: a calculator evaluator
13.5 Capstone: a threaded HTTP server
gcc/
(1)
GCC
lessons/
(1)
C Textbook
rest/
(1)
REST API requests in C
What is argc, char * argv[] in C
Boolean in C
Hello World in C
Kernighan and Ritchie problems solution
Operator «arrow» pointer to member structure
Pointers in C
scanf
Sockets in C
Structures in C
C Related Articles
C
Make
Configure Make Install
curl
JSON