Giter VIP home page Giter VIP logo

the-c-programming-language-2nd-edition-solutions's Introduction

The C Programming Language - Solutions for the 2nd Edition

This repo contains solutions for the exercises of each chapter in the K&R book. The aim is to open source my solutions as a helpful reference for future readers.

About the book

The C Programming Language written by Brian Kernighan and Dennis Ritchie is an invaluable resource for learning the core concepts of programming in C. It is often referred to as the K&R book.

Each chapter of the book contains exercises related to the discussed content.

Chapters of the Book

Running the Solutions

The provided solutions are independent of any IDE. You can run the solutions individually using a C compiler of your choice.

Running and Debugging in VS Code

If you are using VS Code, you can use the tasks.json and launch.json to easily compile and execute each file. I also recommend using the C/C++ extension by Microsoft for IntelliSense, debugging and code browsing. To show the debug button in VS Code for each C file, you can enable the C_Cpp: Debug Shortcut under Settings > Extensions > C/C++.

Running Tests

For some of the exercises, you will be able to run tests with Ceedling. The tests are provided in the tests directory. Once you have Ceedling installed, you can run them using the ceedling command.

ceedling test:all  # run all the tests
ceedling test:name # test specific test suite with `name`

Feedback

If you find any mistake or can think of a more optimized or cleaner solution, please let me know! I'd be happy to hear from you.

the-c-programming-language-2nd-edition-solutions's People

Contributors

philipkrueck avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.