C PROGRAM - BOOKS

Thread Starter

linhvn

Joined Nov 6, 2024
297
Can somebody recommend me a fundamental book about learning C program , I need a systematic, basic and easy book to understand C program?
 

WBahn

Joined Mar 31, 2012
32,702
There are LOTS of resources out there to learn C programming, including step-by-step tutorials that allow you to live code the examples and problems. Unfortunately, as with many things, the reason that there are so many is that no one size fits all. The same book will be a great match of one person and a horrible match for another. Not only will the most effective writing style and depth of coverage vary from one reader to another, but a huge factor is what background you bring to the table. If you have zero background in programming, you will probably need a very different approach than someone that has at least some background in another high-level language, which will differ from that needed by someone who has a background in programming microcontrollers using assembly language.

With all of that in mind, and if you really want a physical book, then "C: How to Program" by Deitel and Deitel is a widely used classic, though I'm not as fond of the most recent edition.

Many will recommend K&R (Kernigan and Ritchie). While it has the advantage of being short and to the point (as well as being written by the guys that invented C), it is very dated and teaches a number of things that are against both current best practices as well as not being compliant with the current C standard, just using a very outdated style that is seldom seen/used any more. Also, part the brevity is at the expense of completeness, so a number of things are presented in a superficial way that can leave you believing you have a fuller understanding than you do. On the flip side, they sometimes talk about the implementations of some of the library functions to a much greater degree than you generally see now.
 

Thread Starter

linhvn

Joined Nov 6, 2024
297
There are LOTS of resources out there to learn C programming, including step-by-step tutorials that allow you to live code the examples and problems. Unfortunately, as with many things, the reason that there are so many is that no one size fits all. The same book will be a great match of one person and a horrible match for another. Not only will the most effective writing style and depth of coverage vary from one reader to another, but a huge factor is what background you bring to the table. If you have zero background in programming, you will probably need a very different approach than someone that has at least some background in another high-level language, which will differ from that needed by someone who has a background in programming microcontrollers using assembly language.

With all of that in mind, and if you really want a physical book, then "C: How to Program" by Deitel and Deitel is a widely used classic, though I'm not as fond of the most recent edition.

Many will recommend K&R (Kernigan and Ritchie). While it has the advantage of being short and to the point (as well as being written by the guys that invented C), it is very dated and teaches a number of things that are against both current best practices as well as not being compliant with the current C standard, just using a very outdated style that is seldom seen/used any more. Also, part the brevity is at the expense of completeness, so a number of things are presented in a superficial way that can leave you believing you have a fuller understanding than you do. On the flip side, they sometimes talk about the implementations of some of the library functions to a much greater degree than you generally see now.
K&R (Kernigan and Ritchie), Can I have the name of book
 

WBahn

Joined Mar 31, 2012
32,702
K&R (Kernigan and Ritchie), Can I have the name of book
You need to start learning how to use the tools at your disposal, instead of just asking strangers on the Internet to spoon feed you.

When I put "K&R" into Google, the very first thing is about their book. If I put it into other search engines, there are sometimes other things, but a pretty obvious link to information about them and there book is always on the first page of results.

Now imagine what might happen if you put in "Kernigan and Ritchie".
 

MrAl

Joined Jun 17, 2014
13,667
Can somebody recommend me a fundamental book about learning C program , I need a systematic, basic and easy book to understand C program?
There is so much on the internet about this you should start by doing a search. Lots of stuff on the web on this.
 
Top