You can learn it with zero foundation, but it will definitely be easier if you have a certain foundation in programming languages.
As for what books to read, here are a few recommended ones:
1. C Language Introduction Classic
"C Language Introduction Classic" has simple and life-like examples. And each example is analyzed in detail. The chapters are arranged reasonably, and the examples at the end of the chapters pay special attention to the guidance of ideas, and the analysis is particularly rewarding.
This book is a good book for the self-study process.
2.C primer plus
This book is very suitable for readers who want to learn C language systematically. Just like its name, it is a good introductory and advanced book. book of. Each knowledge point in the book has many vivid and simple examples, and the corresponding operation results are given. In short, while reading this book, I felt like it was all in one go.
3. C and pointers
This book, "Expert Programming" and "C Defects and Traps" can be called the three masters of C language (advanced books). Some of the content in this book is more suitable for people with a C foundation. For example, in the parts of ADT, recursion, pointers and arrays, the ideas described in the book are lacking in domestic textbooks. After reading this book, you can get a correct view of C language.
4. C Programming Language
It is unbelievable that such an introductory book on C language starts from hello world, but it is so short in length. Here, I teach you step by step how to write most of the routines in stdio.h stdlib.h
string.h, which implement important data structures and algorithms such as binary search, quick sort, binary tree, and hash table. This book conveys simplicity, elegance, plainness and leisure.
5. C Expert Programming
"C Expert Programming" shows the coding skills used by the best C programmers, and has a dedicated chapter on C The basic knowledge is introduced. In the book, C's history, language features, declarations, arrays, pointers, links, runtime, memory, and how to further learn C are explained and analyzed in depth.
Recommended tutorial: "c"
The above is the detailed content of What books should I read to learn C language from scratch?. For more information, please follow other related articles on the PHP Chinese website!