What are the recommended classic books for learning C language?

Entry classic

C Primer Plus (6th edition) Chinese version

What are the recommended classic books for learning C language?

 

This book explained the basic concepts and programming skills of the C language in detail.

The book consists of 17 chapters. Chapter 1, Chapter 2 introduces the prerequisite knowledge of C language programming. Chapters 3 to 15 explain the relevant knowledge of the C language in detail, including data types, formatted input/output, operators, expressions, statements, loops, character input and output, functions, arrays and pointers, characters and characters String functions, memory management, file input and output, structure, bit manipulation, etc. Chapters 16 and 17 introduce the C preprocessor, C library, and advanced data representation. This book takes a complete program as an example to explain the key points and precautions of the C language. A large number of review questions and programming exercises are designed at the end of each chapter to help readers consolidate what they have learned and improve their actual programming ability. The appendix gives reference answers to review questions in each chapter and a wealth of reference materials.

This book can be used as a C language teaching material, suitable for beginners who need to learn C language systematically, and also for programmers who consolidate C language knowledge or hope to further improve programming techniques.

Advanced classic

C and pointer

What are the recommended classic books for learning C language?

 

There are many excellent books about C language on the market, why do we need this one? I have been teaching C programming in the university for 10 years, but so far I haven't found a book about pointers in the way I like. Many books use a chapter devoted to pointers, and they often appear in the second half of the book. However, it is not enough to just describe the syntax of pointers and use some simple examples to show their usage. When I was teaching, I started to teach pointers very early, and I often discussed pointers in the course of later teaching. I describe their effective usage in a variety of different contexts and show the programming idiom using pointers. I also discussed some related topics such as the trade-off between programming efficiency and program maintainability. The pointer is the clue of the book, and it is integrated throughout the book.

Why are pointers so important? My belief is: It is pointers that make C infinitely powerful. Some tasks can be implemented in other languages, but C can be implemented more effectively; some tasks cannot be implemented in other languages, such as direct access to the hardware, but C can. To become a good C programmer, a deep and complete understanding of pointers is a prerequisite.

This book is not an introductory book on programming. The readers it is aimed at should already have some programming experience, or someone who wants to learn C, but does not want to be delayed by superficial questions such as why loops are important and when to use if statements.

On the other hand, I do not require readers of this book to have learned C before. I talked about all aspects of the C language. This wide coverage of content makes this book not only suitable for students, but also for professionals. In other words, it is suitable for readers who are learning C for the first time and those who are more experienced users who wish to further improve their language skills.

Good C++ books are right to focus on topics related to object-oriented models (such as class design) instead of focusing on basic C skills. But C++ is built on the basis of C, and the basic skills of C are still very important, especially those that can implement reusable classes. It is true that C++ programmers can skip some familiar content when reading this book, but they will find many useful C tools and techniques in this book.

C expert programming

What are the recommended classic books for learning C language?

 

C code. The C code runs. Run code to run...please!

——Barbara Ling

All C programs do the same thing, observe a character, and then do nothing.

—— Peter Weinberge

C language programming is a skill, it takes many years of experience to reach a more perfect state. A quick-minded person can quickly learn the basics of the C language. But it takes a lot of time to taste the nuances of the C language and become a C language expert by writing a large number of different programs. For example, this is the difference between ordering a cup of coffee in Paris and telling a native Parisian where to get off in the subway. This book is an advanced reader about the ANSI C programming language. It is suitable for people who have written C programs, and those who want to quickly obtain expert opinions and skills.

Programming experts have established their own technical toolboxes in many years of practice, which are full of idioms, code snippets, and flexible skills. They stand on the shoulders of other more experienced colleagues, either directly comprehend their code, or listen to their teachings while maintaining other people's code, and these things have gradually formed over time. Another way to become a master of C programming is to introspect and make progress in the process of recognizing errors.

C traps and defects

What are the recommended classic books for learning C language?

 

This book attempts to promote and encourage preventive programming by revealing how general programmers, even experienced professional programmers, make mistakes and stumble in programming. These errors are not difficult to avoid once they are actually recognized and understood by programmers. Therefore, the focus of this book is not on general principles, but on specific examples.

If you are a programmer and really use C language to solve complex problems in development, this book should become your desk must-have book. Even if you are already an expert programmer of C language, it is still necessary to own this book. Many professional C programmers who have read the early manuscripts of the book often lament: "I encountered such a bug just last week!" If you are teaching a C language course, this book should undoubtedly become your preferred supplementary reading material for students.

This book is not a criticism of the C language. No matter what programming language the programmer uses, he may encounter trouble. This book condenses the author's 10 years of C language development experience, and focuses on various problems and "traps" in the C language. The purpose is to hope that programmer readers can learn from me and other people I have seen commit. Wrong lessons.

This book is not a "cooking recipe". We can't hope that mistakes can be completely avoided through detailed instructions. If feasible, then all traffic accidents can be prevented by brushing "Drive carefully" signs on the roadside. For the average person, the most effective way to learn is to learn from perceptual, real-life examples, such as one’s own experience or the experience and lessons of others. Moreover, even if you just understand how a particular error can happen, you have already taken a big step forward in avoiding that error in the future.

Guess you like

Origin blog.csdn.net/epubit17/article/details/108092043