This repository contains implementations of exercises and examples from the book "The C Programming Language" by Brian Kernighan and Dennis Ritchie.
"The C Programming Language" is a seminal book in the field of computer programming, widely regarded as one of the best books to learn the C programming language. This repository serves as a companion to the book, providing practical implementations of the concepts covered in each chapter.
The repository is organized by chapters from the book. Each chapter directory contains the corresponding exercises and examples implemented in C.
The_C_Programming_Language ├── Chapter_1 │ ├── Task_1.1.c │ ├── Task_1.2.c │ └── ... ├── Chapter_2 │ ├── Task_2.1.c │ ├── Task_2.2.c │ └── ... ├── Chapter_3 │ ├── Task_3.1.c │ ├── Task_3.2.c │ └── ... ├── Chapter_4 │ ├── Task_4.1.c │ ├── Task_4.2.c │ └── ... ├── Chapter_5 │ ├── Task_5.1.c │ ├── Task_5.2.c │ └── ... ├── Chapter_6 │ ├── Task_6.1.c │ ├── Task_6.2.c │ └── ... ├── Chapter_7 │ ├── Task_7.1.c │ ├── Task_7.2.c │ └── ... ├── Chapter_8 │ ├── Task_8.1.c │ ├── Task_8.2.c │ └── ... ├── alloc.c ├── qsort.c └── Calculator ├── calc.h ├── getch.c ├── getop.c ├── main.c └── stack.c
- Clone the repository:
git clone https://github.com/VelSkorp/The_C_Programming_Language.git
- Navigate to the desired chapter directory:
cd The_C_Programming_Language/ChapterX
Replace X
with the chapter number.
- Select a C file to view or edit.
- Compile the C file using a C compiler such as GCC:
gcc -o Task_X.Y Task_X.Y.c
Replace X
with the chapter number.
Replace Y
with the task number.
- Run the compiled executable:
./Task_X.Y
Replace X
with the chapter number.
Replace Y
with the task number.
Contributions are welcome! Feel free to submit issues or pull requests with improvements, corrections, or additional exercises.
This project is licensed under the MIT License - see the LICENSE file for details.