Skip to content

Solutions for all exercises int he book The C Programming Language - 2nd edition by Dennis M. Ritchie and Brian W. Kernighan

License

Notifications You must be signed in to change notification settings

gvlima/the-c-programming-language-2nd-edition

Repository files navigation

The C Programming Language

This repository contains the solutions to the exercises from each chapter of the book, these solutions are meant to be helpful for those who want to learn to program with the C language.

The first C programming book “The C Programming Language” was published in 1978, written by Brian Kernighan and Dennis Ritchie. With the rapid growth of the C language for several years, it was time to standardize the language and are also known as ANSI C. The focus of the book is the C programming language, however, the approach is general, so it can be extended to all programming languages.

Content

  • Chapter 1. A Tutorial Introduction
  • Chapter 2. Types, Operators, and Expressions
  • Chapter 3. Control Flow
  • Chapter 4. Functions and Program Structure
  • Chapter 5. Pointers and Arrays
  • Chapter 6. Structures
  • Chapter 7. Input and Output
  • Chapter 8. The UNIX System Interface

Notes

Note: Most input functions are terminated by EOF, for programs reading from stdin, you will need to hit CTRL-D twice to exit if the last character entered was not a newline, this behavior is defined by the POSIX standard (see this Stack Overflow question).

Test Files The test data files are provided to support manually testing the exercises. Specifically, the ones that draw from standard input can be manually tested with these. There are some files that i used for test and a instruction to how use it.

Version: The code was written according to the C99 standard, published in 2011.

About

Solutions for all exercises int he book The C Programming Language - 2nd edition by Dennis M. Ritchie and Brian W. Kernighan

Topics

Resources

License

Stars

Watchers

Forks

Languages