williamgherman/c-solutions
williamgherman/c-solutions has 720 GitHub stars and 238 forks. Star changes are not measured yet. Last checked 2026-11-09 19:09 UTC. Last push 2023-08-22.
My Solutions to K. N. King's "C Programming: A Modern Approach", second edition
Measured star growth
- in 24h
- Update delayed
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalc-solutions
My complete solutions to the exercises in K. N. King's "C Programming: A Modern Approach", second edition.
Information
The solutions to the exercises are complete, including the first exercises on chapter 2 to the last program of chapter 27. Modified code from the book has been included under fair use and with the explicit copyright notice included in relevant files.
My solutions aim to be as complete as possible with little ambiguity or cluttering. The complete exercise questions will also be provided, and the solutions will be compiled as directed from the book.
All testing was done on a x86_64 Linux system running GCC 7.2.0 or greater. The compiler has been set to run the C89 or C99 standard unless otherwise noted:
$ gcc filename.c -o filename.o -Wall -Wextra -Wpedantic -std=c89
$ gcc filename.c -o filename.o -Wall -Wextra -Wpedantic -std=c99
Note that for all exercises or projects that require the <math.h> header,
linkage in gcc is required, i.e., to use the -lm option. Makefiles are
provided for such programs, and Makefiles are also provided for projects
consisting of multiple files.
License
Code from the book has the copyright notice as stated in book-notice.txt.

This work is
licensed under a Creative Commons Attribution
4.0 International License.
Explore related projects
sindresorhus/awesome
😎 Awesome lists about all kinds of interesting topics [NOTE: Pull requests are temporarily disabled until I have a chance to catch up with the existing ones]
534,376 starsEbookFoundation/free-programming-books
:books: Freely available programming books
401,397 starsnilbuild/developer-roadmap
Interactive roadmaps, guides and other educational content to help developers grow in their careers.
371,688 starsvinta/awesome-python
The definitive list that answers "I want to do X in Python, which tool should I use?"
333,651 stars