Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cover of C programming

    C programming

    K. N. King · 1996

    You've never seen a C book like this before: packed with useful information and examples, yet highly readable. Everyone from beginner to expert can profit from reading C Programming: A Modern Approach.

    Programming
    Open LibraryAmazon
    Stats for nerds
    26recommend
    33mentions
    30people
    2009–2025years
    88% recommend12% neutral

    Mentions per year

    200920112013201520172019202120232025

    What Hacker News says

    1. purple-leafyJan 2025
      C Programming: A Modern Approach (K N King) that I recently finished, has been great.

      Prior to that, JavaScript the Definitive Guide.

      Also cracked into Crafting Interpreters (was great) but got sidetracked.

      thread
    2. shricApr 2023
      I would highly recommend C Programming: A Modern Approach by K.N. King as an alternative and replacement for K&R.

      http://knking.com/books/c2/index.html

      thread
    3. robayeJan 2023
      C Programming: A Modern Approach by K. N. King. I’ve never seen another book that contains as many exercises and projects as Kings book does.
      thread
    4. jshrakeDec 2022
      I recommend C Programming: A Modern Approach by K.N. King http://knking.com/books/c2/index.html. My favorite part of this book is the exercises at the end of each chapter.
      thread
    5. pkkmDec 2022
      The K&R book is a great example of clear technical writing, but it's also quite terse. I'd recommend C Programming: A Modern Approach by K. N. King instead, as it uses a more gentle pedagogical approach.
      thread
    6. Arch-TKDec 2022
      I think a good place to start is to mostly ignore most/all the advice in this thread. I haven't obviously read every response but I have struggled to find any response near the top which isn't recommending something which will give poor results or is outright wrong.

      Good resources:

      - #c on libera.chat *

      - https://www.iso-9899.info/

      Good books:

      - C Programming: A Modern Approach - K. N. King

      - K&R2 with the errata at hand and the guidance of someone experienced when doing all the exercises

      Good advice:

      - Don't write a single line for which you are not sure that the behaviour is either well defined by the standard or by your particular implementation (and if the latter is the case, ensure you are well aware of the implications and document them appropriately).

      - C is not a "try it and see" language, trying it will lead to undefined behavior and buggy code which you might not even become aware of until you have "learned" the language.

      - Lots of C out there is littered with poor practices or heavily specialised to the task/target set of architectures/situation and is therefore not a good example for learning. Feel free to read lots of C once you have the fundamentals down, not before.

      Things to avoid:

      - Every online tutorial (no I haven't seen them all but none of the popular ones seem to instill the right discipline and are usually full of errors, one of the ones linked from this thread has a bug in the hello world program in the first exercise).

      - Most books on the matter.

      - Writing C.

      * disclaimer: I am one of the founders of this channel.

      thread

    Related

    Cover of 21st Century C
    2012–2024

    21st Century C

    Ben Klemens
    42 recommend · 71
    Cover of Programming in C
    2010–2016

    Programming in C

    Stephen G. Kochan
    7 recommend · 9
    Cover of The C Programming Language
    2007–2026

    The C Programming Language

    Brian W. Kernighan
    246 recommend · 604
    Cover of Hands-On Network Programming with C
    2022–2024

    Hands-On Network Programming with C

    Lewis Van Winkle
    2 recommend · 2
    Cover of Expert C programming!
    2008–2026

    Expert C programming!

    Peter Van der Linden
    88 recommend · 150
    Cover of Practical C Programming
    2010–2022

    Practical C Programming

    Steve Oualline
    7 recommend · 10
    Cover of Code
    2008–2026

    Code

    Charles Petzold
    recommend · 385
    243
    Cover of Code Complete
    2007–2026

    Code Complete

    Steve McConnell
    393 recommend · 894