Skip to content

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Programming Language Assignments

This repository contains solutions to the programming assignments from the book "C Programming Language, 2nd Edition" by Brian W. Kernighan and Dennis M. Ritchie. The solutions are organized by chapters and exercises.

C Programming Language, 2nd Edition

About the Book

"The C Programming Language" by Brian W. Kernighan and Dennis M. Ritchie is a definitive reference guide and a popular book for learning C programming. Originally written in 1978, it continues to be a worldwide bestseller. The second edition, which includes updates for the ANSI standard, brings the classic original up to date.

For more information, please refer to the book "The C Programming Language, 2nd Edition" by Brian W. Kernighan and Dennis M. Ritchie.

Table of Contents

Structure

The repository is organized into directories, each corresponding to a set of exercises:

.
├── exercise_1
│  ├── question_1.c
│  ├── question_2.c
│  ├── question_3.c
│  └── ...
├── exercise_2
│  ├── question_1.c
│  ├── question_2.c
│  ├── question_3.c
│  └── ...
├── ...
└── exercise_8
   ├── question_1.c
   ├── question_2.c
   ├── question_3.c
   └── ...

Each directory contains .c files that represent solutions to specific exercises from the book.

How to Use

  1. Clone the Repository:

    git clone https://github.com/lavish440/c-practice
    cd c-practice
  2. Navigate to the Desired Exercise Directory:

    cd exercise_1
  3. Compile the C Programs: You can compile any of the C files using a C compiler like gcc:

    gcc question_1.c -o question_1
  4. Run the Executable:

    ./question_1

Dependencies

  • A C compiler (e.g., gcc)
  • Make sure to have a proper C development environment set up on your machine.

Contributing

Contributions are welcome! If you have improved solutions or additional exercises, feel free to fork the repository and create a pull request.

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-branch)
  3. Make your changes
  4. Commit your changes (git commit -am 'Add new feature')
  5. Push to the branch (git push origin feature-branch)
  6. Create a new Pull Request

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages