C and Pointers cover

C and Pointers

No rating yet
Chapters
19
Series
Classic C and C++ Books
ISBN
9787115522689

Tags

Summary

Pointers on C is a classic C programming textbook written by Kenneth Reek, professor of computer science at Rochester Institute of Technology. The Chinese edition was translated by Xu Bo and published by Posts & Telecom Press in its "C and C++ Classics" series. The book has 18 chapters and takes pointers as its central thread, systematically linking the core topics of C: it begins with basic syntax such as data types, statements, operators, and expressions, then explores the nature of pointers, the relationship between pointers and arrays, pointers and functions, strings and character handling, structures and unions, dynamic memory allocation, and advanced pointer topics such as function pointers and pointers to pointers. The later chapters cover the preprocessor, input/output functions, the standard library, and classic abstract data types implemented with pointers—linked lists, stacks, and queues—as well as the runtime environment and memory layout of a program. Drawing on years of teaching C and consulting in engineering, the author intersperses abundant example code with "Summary of Warnings" and "Summary of Programming Tips" that point out common pitfalls and recommended practices. Each chapter ends with questions and programming exercises, and the appendix gives answers to some of them, so readers can practice as they read and check their progress. Unlike textbooks that emphasize introductory syntax, this book assumes some prior programming background and focuses on helping readers truly master pointers and memory—the hardest and most crucial part of C. This 2020 printing is a relatively recent impression of the standard simplified-Chinese edition, 441 pages in total.

Editor's review

如果你学完C语言的基础语法后,仍然对“指针到底怎么用”“数组和指针差在哪里”“malloc之后内存到底发生了什么”一知半解,那么这本书正是为这个阶段准备的。它的难得之处在于:不满足于罗列语法,而是围绕指针这一条主线,把数据类型、数组、函数、字符串、结构体和动态内存一一串起来讲透,读完之后你对C语言的内存模型会形成一张完整的图。每章末尾的“警告的总结”和“编程提示的总结”是把前人踩过的坑直接摊开给你看,几乎每一条都可以对应到实际工程里的真实bug。第13章“高级指针话题”与第17章“经典抽象数据类型”,是很多读者反复回来重读的部分。全书配有大量示例和分层次的习题,附录还给出部分答案,非常适合自学。ACCU主席Francis Glassborow曾评价它是自己见过最好的C编程入门图书之一。需要提醒的是,本书不教基础语法,零基础读者请先读完一本C语言入门书再开始。

Who it's for

A good fit for

  • 已经学完C语言基本语法、希望彻底搞懂指针的读者
  • 准备考研、面试中被指针与内存管理反复追问的计算机专业学生
  • 需要从事系统编程、嵌入式开发的初级C程序员
  • 想从语法层面进阶到理解内存模型的编程爱好者

Not a good fit for

  • 完全没有接触过C语言、连基本语法都不熟悉的零基础读者
  • 想快速查API或寻找现成代码片段的实用派读者
  • 只学C++、无意深入C语言底层机制的读者

Reading tips

  1. 先通读第1章示例程序,把编译、运行流程跑通,再进入概念章节。
  2. 每章读完务必亲手敲一遍示例,并完成章末习题,这是本书最大的价值所在。
  3. 第6、8、13章可反复对照阅读,用图画出数组、指针、多维数组的指向关系。
  4. 把第11、12、17章串起来读,动手实现链表、堆栈、队列,体会指针与动态内存的配合。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Chapter 1 A Quick Start
  2. Chapter 2 Basic Concepts
  3. Chapter 3 Data
  4. Chapter 4 Statements
  5. Chapter 5 Operators and Expressions
  6. Chapter 6 Pointers
  7. Chapter 7 Functions
  8. Chapter 8 Arrays
  9. Chapter 9 Strings, Characters, and Bytes
  10. Chapter 10 Structures and Unions
  11. Chapter 11 Dynamic Memory Allocation
  12. Chapter 12 Using Structures and Pointers
  13. Chapter 13 Advanced Pointer Topics
  14. Chapter 14 The Preprocessor
  15. Chapter 15 Input/Output Functions
  16. Chapter 16 The Standard Function Library
  17. Chapter 17 Classic Abstract Data Types
  18. Chapter 18 The Runtime Environment
  19. Appendix Answers to Selected Questions and Programming Exercises

FAQ

这本书适合零基础学C语言的人吗?
不太适合。本书默认读者已有基本的C语言语法基础,重点在深入讲解指针、数组与内存。零基础读者建议先读一本入门教材,把数据类型、循环、函数写熟练,再回过头来看本书效果最好。
这本书和《C Primer Plus》有什么区别?
《C Primer Plus》覆盖面广、适合入门,从语法讲起;《C和指针》则要求有一定基础,以指针为主线深入C语言的底层机制,难度更高,更适合入门之后的第二本书。
书中的代码基于哪个C标准?
本书基于ANSI C(C89/C90)标准编写,涉及的语法与标准库在当代编译器上基本可以正常使用,个别地方需注意现代编译器的警告提示。
每章的练习有答案吗?
附录中给出了部分问题和编程练习的答案,并非全部;作者更希望读者自己动手调试,遇到困惑时再参考附录。
这本书有多个版本,内容差别大吗?
英文原书 Pointers on C 只有一个主体版本,国内不同年份印次的ISBN与页数略有差异,但18章的章节结构和核心内容基本一致。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

More by the same author

Top rated in the same category