Contents in Detail

  1. Cover Page
  2. Title Page
  3. Copyright Page
  4. Dedication
  5. About the Author
  6. About the Contributor
  7. About the Tech Reviewer
  8. BRIEF CONTENTS
  9. CONTENTS IN DETAIL
  10. FOREWORD BY PASCAL CUOQ
  11. FOREWORD BY OLLIE WHITEHOUSE
  12. ACKNOWLEDGMENTS
  13. INTRODUCTION
    1. A Brief History of C
    2. The C Standard
    3. The CERT C Coding Standard
    4. Who This Book Is For
    5. What’s in This Book
  14. 1 GETTING STARTED WITH C
    1. Developing Your First C Program
    2. Editors and Integrated Development Environments
    3. Compilers
    4. Portability
    5. Summary
  15. 2 OBJECTS, FUNCTIONS, AND TYPES
    1. Objects, Functions, Types, and Pointers
    2. Declaring Variables
    3. Scope
    4. Storage Duration
    5. Alignment
    6. Object Types
    7. Function Types
    8. Derived Types
    9. Tags
    10. Type Qualifiers
    11. Exercises
    12. Summary
  16. 3 ARITHMETIC TYPES
    1. Integers
    2. Floating-Point
    3. Arithmetic Conversion
    4. Summary
  17. 4 EXPRESSIONS AND OPERATORS
    1. Simple Assignment
    2. Evaluations
    3. Function Invocation
    4. Increment and Decrement Operators
    5. Operator Precedence and Associativity
    6. Order of Evaluation
    7. sizeof Operator
    8. Arithmetic Operators
    9. Bitwise Operators
    10. Logical Operators
    11. Cast Operators
    12. Conditional Operator
    13. _Alignof Operator
    14. Relational Operators
    15. Compound Assignment Operators
    16. Comma Operator
    17. Pointer Arithmetic
    18. Summary
  18. 5 CONTROL FLOW
    1. Expression Statements
    2. Compound Statements
    3. Selection Statements
    4. Iteration Statements
    5. Jump Statements
    6. Exercises
    7. Summary
  19. 6 DYNAMICALLY ALLOCATED MEMORY
    1. Storage Duration
    2. Memory Management Functions
    3. Memory States
    4. Flexible Array Members
    5. Other Dynamically Allocated Storage
    6. Debugging Allocated Storage Problems
    7. Exercises
    8. Summary
  20. 7 CHARACTERS AND STRINGS
    1. Characters
    2. Strings
    3. String-Handling Functions
    4. Summary
  21. 8 INPUT/OUTPUT
    1. Standard I/O Streams
    2. Opening and Creating Files
    3. Closing Files
    4. Reading and Writing Characters and Lines
    5. Stream Flushing
    6. Setting the Position in a File
    7. Removing and Renaming Files
    8. Using Temporary Files
    9. Reading Formatted Text Streams
    10. Reading to and Writing from Binary Streams
    11. Summary
  22. 9 PREPROCESSOR
    1. The Compilation Process
    2. File Inclusion
    3. Conditional Inclusion
    4. Macro Definitions
    5. Summary
  23. 10 PROGRAM STRUCTURE
    1. Principles of Componentization
    2. Executables
    3. Linkage
    4. Structuring a Simple Program
    5. Building the Code
    6. Summary
  24. 11 DEBUGGING, TESTING, AND ANALYSIS
    1. Assertions
    2. Compiler Settings and Flags
    3. Debugging
    4. Unit Testing
    5. Static Analysis
    6. Dynamic Analysis
    7. Exercises
    8. Summary
  25. REFERENCES
  26. INDEX
  1. iii
  2. iv
  3. v
  4. vi
  5. vii
  6. viii
  7. ix
  8. x
  9. xi
  10. xii
  11. xiii
  12. xiv
  13. xv
  14. xvi
  15. xvii
  16. xviii
  17. xix
  18. xxi
  19. xxiii
  20. xxiv
  21. xxv
  22. xxvi
  23. xxviii
  24. 1
  25. 2
  26. 3
  27. 4
  28. 5
  29. 6
  30. 7
  31. 8
  32. 9
  33. 10
  34. 11
  35. 12
  36. 13
  37. 14
  38. 15
  39. 16
  40. 17
  41. 18
  42. 19
  43. 20
  44. 21
  45. 22
  46. 23
  47. 24
  48. 25
  49. 26
  50. 27
  51. 28
  52. 29
  53. 30
  54. 31
  55. 32
  56. 33
  57. 34
  58. 35
  59. 36
  60. 37
  61. 38
  62. 39
  63. 40
  64. 41
  65. 42
  66. 43
  67. 44
  68. 45
  69. 46
  70. 47
  71. 48
  72. 49
  73. 50
  74. 51
  75. 52
  76. 53
  77. 54
  78. 55
  79. 56
  80. 57
  81. 58
  82. 59
  83. 60
  84. 61
  85. 62
  86. 63
  87. 64
  88. 65
  89. 66
  90. 67
  91. 68
  92. 69
  93. 70
  94. 71
  95. 72
  96. 73
  97. 74
  98. 75
  99. 76
  100. 77
  101. 78
  102. 79
  103. 80
  104. 81
  105. 82
  106. 83
  107. 84
  108. 85
  109. 86
  110. 87
  111. 88
  112. 89
  113. 90
  114. 91
  115. 92
  116. 93
  117. 94
  118. 95
  119. 96
  120. 97
  121. 98
  122. 99
  123. 100
  124. 101
  125. 102
  126. 103
  127. 104
  128. 105
  129. 106
  130. 107
  131. 108
  132. 109
  133. 110
  134. 111
  135. 112
  136. 113
  137. 114
  138. 115
  139. 116
  140. 117
  141. 118
  142. 119
  143. 120
  144. 121
  145. 122
  146. 123
  147. 124
  148. 125
  149. 126
  150. 127
  151. 128
  152. 129
  153. 130
  154. 131
  155. 132
  156. 133
  157. 134
  158. 135
  159. 136
  160. 137
  161. 138
  162. 139
  163. 140
  164. 141
  165. 142
  166. 143
  167. 144
  168. 145
  169. 146
  170. 147
  171. 148
  172. 149
  173. 150
  174. 151
  175. 152
  176. 153
  177. 154
  178. 155
  179. 156
  180. 156
  181. 157
  182. 158
  183. 159
  184. 160
  185. 161
  186. 162
  187. 163
  188. 164
  189. 165
  190. 166
  191. 167
  192. 168
  193. 169
  194. 170
  195. 171
  196. 172
  197. 173
  198. 174
  199. 175
  200. 176
  201. 177
  202. 178
  203. 179
  204. 180
  205. 181
  206. 182
  207. 183
  208. 184
  209. 185
  210. 186
  211. 187
  212. 188
  213. 189
  214. 190
  215. 191
  216. 192
  217. 193
  218. 194
  219. 194
  220. 195
  221. 196
  222. 197
  223. 198
  224. 199
  225. 200
  226. 200
  227. 201
  228. 202
  229. 203
  230. 204
  231. 205
  232. 206
  233. 207
  234. 208
  235. 209
  236. 210
  237. 211
  238. 212
  239. 213
  240. 214
  241. 215
  242. 216
  243. 217
  244. 218
  245. 219
  246. 220
  247. 221
  248. 222
  249. 223
  250. 224
  251. 225
  252. 226
  253. 227
  254. 228
  255. 229
  256. 230
  257. 231
  258. 232
  259. 233
  260. 234
  261. 235
  262. 236
  263. 237
  264. 238
  265. 239
  266. 240
  267. 241
  268. 243
  269. 244