Ask HN: Best book to learn C in 2022?

Recommendations from 100 sampled comments out of 155 eligible comments. This page covers the sample, rather than the entire HN thread.

23 books

orsenthil · Oct 9, 2022
Using K&R, I try to practice the problems and understand them to learn C.
ljosifov · Oct 8, 2022
another vote for K&R "The C Programming Language" - for the sheer joy of it!
ccouzens · Oct 8, 2022
the only c book I've read was the k&r book. It seemed fine.
hankchinaski · Oct 8, 2022
what I used was "The C Programming Language" book. It was a great experience
fargle · Oct 8, 2022
Here's another vote for K&R.
readme · Oct 8, 2022
K&R is a must have for any C programmer.
Syzygies · Oct 8, 2022
K&R would put C in historical context.
pjmlp · Oct 8, 2022
Regarding K&R C, you should read it for its historical relevance to the C programming language
hiepph · Oct 8, 2022
K&R is a bit more intermediate. Come back to it when you're more experienced.
GeneT45 · Oct 8, 2022
K&R is so obsolete it's now wrong about some things.
cxr · Oct 8, 2022
Here's my advice to the original poster: If you come across unsubstantiated comments telling you to ignore K&R for all the bad things it contains, then ignore those.
flohofwoe · Oct 8, 2022
K&R was a very interesting read for me
flohofwoe · Oct 8, 2022
K&R 2nd Edition is still a very good read of course
Trex_Egg · Oct 8, 2022
I recommend "Computer Systems: A Programmer's Perspective"
stusmall · Oct 8, 2022
This is my favorite of the bunch.
miguendes · Oct 8, 2022
King’s is amazing, IMO. Very didactic and covers C in depth.
equilibrium · Oct 8, 2022
C Programming: A Modern Approach by King
sfpotter · Oct 8, 2022
reading Hanson's book is a reasonable way to get some ideas.
rramadass · Oct 8, 2022
The data structures/algorithms given in Hanson's book are "industrial strength"
ljosifov · Oct 8, 2022
Close to as much fun to read was maybe Steve Maguire's "Writing Solid Code".
Blackstrat · Oct 9, 2022
I preferred Seacord’s Effective C to Modern C.
jmercan · Oct 8, 2022
I would say "Effective C" is a good book
GeneT45 · Oct 8, 2022
Effective C is the most current in terms of being up to date with present-day C standards.
Blackstrat · Oct 9, 2022
I preferred Seacord’s Effective C to Modern C.
pjmlp · Oct 8, 2022
Secure C from Oreilly and Modern C from Manning are more relevant in 2022.
fhchl · Oct 8, 2022
I recommend "Modern C" by Jens Gusted.
belter · Oct 8, 2022
Also "Code Reading" will be useful.
cryptonector · Oct 8, 2022
The best one might be https://doc.rust-lang.org/book/
chubot · Oct 8, 2022
I read the Hanson book ~10 years ago
mhd · Oct 8, 2022
I especially like that the focus is on the module level, not on the algorithms themselves.
bmitc · Oct 8, 2022
I highly recommend Head First C.
sureglymop · Oct 8, 2022
I would recommend "Head First C" from o reilly.