Skip to content

This repository contains implementations of exercises and examples from the book "The C Programming Language" by Brian Kernighan and Dennis Ritchie.

License

Notifications You must be signed in to change notification settings

VelSkorp/The_C_Programming_Language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

The C Programming Language

This repository contains implementations of exercises and examples from the book "The C Programming Language" by Brian Kernighan and Dennis Ritchie.

Overview

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

Contents

The repository is organized by chapters from the book. Each chapter directory contains the corresponding exercises and examples implemented in C.

Structure

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

Usage

  1. Clone the repository:
git clone https://github.com/VelSkorp/The_C_Programming_Language.git
  1. Navigate to the desired chapter directory:
cd The_C_Programming_Language/ChapterX

Replace X with the chapter number.

  1. Select a C file to view or edit.
  2. 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.

  1. Run the compiled executable:
./Task_X.Y

Replace X with the chapter number. Replace Y with the task number.

Contributing

Contributions are welcome! Feel free to submit issues or pull requests with improvements, corrections, or additional exercises.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This repository contains implementations of exercises and examples from the book "The C Programming Language" by Brian Kernighan and Dennis Ritchie.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages