News for hackers. Stuff that matters.
Re:Ask HN: Best book to learn C in 2022? by pjmlp on Saturday October 08, 2022 @10:24AM (#33132512)
Regarding K&R C, you should read it for its historical relevance to the C programming language, that is about it, it isn't 1980 any longer.

Secure C from Oreilly and Modern C from Manning are more relevant in 2022.

Then have a look into Frama-C and SAL security frameworks, MISRA C, and CERT C coding standards.

Re:Ask HN: Best book to learn C in 2022? by gizlu on Sunday October 09, 2022 @10:27AM (#33141427)
Hm, C language (itself) hasn't got much major changes since ANSI standardization. I would say that one is able to grasp changes relevant to him, by whipping through the changelog for 10-15 minutes

Edit: If you are critizing K&R for not teaching how to write safest code then, well, you are right. It is simply not meant to do that

Re:Ask HN: Best book to learn C in 2022? by pjmlp on Sunday October 09, 2022 @10:38AM (#33141587)
Compare C23 with K&R C.

You're right on the security part, and that C authors hardly care about it is visible on the language itself, naturally the book wouldn't be any better.