Yeah I mean I think there’s language syntax, and then there are programming patterns. K&R is amazing for the language fundamentals and syntax, but there are more modern patterns. If you take the time to really fork k&r anything mess will come easily.
K&R is still the cleanest, but it only covers C89. If you're learning C today, pair it with something that mentions C99/C11 features like designated initializers and stdint, or you'll hit syntax in real code that K&R never explains.
K&R's The C Programming Language is a classic, but the language described is very old.
You might want to look at:
Jens Gustedt's "Modern C", 3rd Edition describes C23. It's the most recent book you'll find, but the contents can be challenging if you're very new to programming. It's also available online, so you can check it out at any time.
K. N. King's "C Programming: A Modern Approach" is a bit older, but still covers C99 and it's very didactic and readable in my opinion. The one disadvantage is that you lose out on the useful post-C11 features like threading and such, but you can always read "Modern C" later for that.
K&R is excellent. another i'd recommend: "Schaum's outline of theory and problems of programming with C" (Gottfried, Byron) its old and difficult to find, but i think it's very good
18
u/zhivago Sep 29 '26
Personally, I still think that K&R is the best with the least junk.
But given that people don't seem to learn state machines anymore, the exercises may seem harder than they are.
11
u/HyperWinX Sep 29 '26
The one that you've found in subreddit's sidebar. You've read the whole sidebar, right?
7
u/AtlantaRene Sep 29 '26
K&R is most direct and to the point. Also consider C PROGRAMMING: A Modern Approach by K. N. King.
5
u/Arkaqiu Sep 29 '26
I like modern c by Jens Gustedt and Extreme C by Kamran Amini.
Very good books, present good practise in archcotecture, data management and proven patterns in C programming.
3
u/irk5nil Sep 30 '26
K&R's The C Programming Language is a classic, but the language described is very old.
You might want to look at:
3
u/studiocrash Sep 29 '26
“Effective C” or “Beej’s Guide to C Programming “.
1
u/echelon_code Sep 30 '26
K&R is excellent. another i'd recommend: "Schaum's outline of theory and problems of programming with C" (Gottfried, Byron) its old and difficult to find, but i think it's very good
1
u/gm310509 Oct 01 '26
You won't learn from a book (or youtube, AI et al).
The book will lead you. You will actually learn by trying out the exercises and concepts yourself (and experimenting with them).
As for which one? I learned from the K+R book. As others have mentioned there is a bit of a list in the sidebar.
As to which is "the best", that is sort of a personal choice. Everybody learns differently and thus will have different opinions as to which is best.
But if it starts out with the basics and has plenty of things for you to try it is probably pretty good.
IMHO.
1
u/neopunk2025 Oct 25 '26
C by exemple (C par l'exemple)
-2
u/suboculus Sep 29 '26
well grounded rubyist by david a.black