Unfortunately, despite the best efforts of myself, the technical editor, the copy editor, the line editor, the proofreader, and despite the multiple revisions, errors still occur. This page lists all the errors found in the book since it went to print.
Note: errors are corrected in subsequent printings and therefore your particular copy may not contain all of the following. You may also be experiencing problems not caused by a mistake in the book. If so, you may find the solution to your problem by using the book’s corresponding forum. Significant changes in the technology will be addressed there and you can also find problems and solutions encountered by other readers.
Known Errors in the Book:
Click on a column heading to sort the table by that column.
Chapter | Page # | Description | Date Added |
---|---|---|---|
1: Getting Started with C | 16 | The first word in the first paragraph should be “Note”, not “Not”. | January 23, 2007 |
3: Working with Numbers | 40 | The first word in Step 2 should be “Begin”, not “Being”. | February 18, 2008 |
3: Working with Numbers | 40 | The first line of code under Step 5 is missing the terminating semicolon. | February 18, 2008 |
3: Working with Numbers | 41 | In the penultimate sentence of Step 6, it should say value of 286, with the remainder…. | February 27, 2005 |
3: Working with Numbers | 45 | In the code under Step 6, the last printf() line should begin printf (“After n2 = n1–, n1 is %d,. The corresponding script is correct. | January 24, 2005 |
3: Working with Numbers | 46 | In the code to Step 8, the last printf() line should begin printf (“After n2 = –n1. The corresponding script is correct. | July 17, 2005 |
3: Working with Numbers | 48 | In the very last line under Step 4, the parenthetical should be %0.1f. | March 11, 2007 |
4: Control Structures | 61 | In Table 4.1, the operator for “less than or equal to” should obviously be <= not >=. | July 26, 2005 |
4: Control Structures | 64 | In the first line of the fourth paragraph of the sidebar, it should say “You bet.” | February 18, 2008 |
4: Control Structures | 66 | In Script 4.3, there’s an extraneous character on line 16. The line should just be } else {. | July 26, 2005 |
4: Control Structures | 77 | In the second Tip, the chapter reference should be to Chapter 7, not 6 (the chapter title is correct for Chapter 7). | March 11, 2007 |
5: Standard Input and Output | 91 | In the second block of example code, the last line of code is missing the semicolon. | April 1, 2007 |
5: Standard Input and Output | 92 | On line 18 of Script 5.3, there is an extra closing parentheses at the end of the comment. | January 23, 2007 |
6: Working with Arrays | 124 | Line 22 of Script 6.6 should read for (i = 10; i >=0; i–) | December 22, 2004 |
6: Working with Arrays | 128 | In the last block of code in the left hand column, the first line should read int grades[][] = {. | May 1, 2006 |
8: Using the C Preprocessor | 189 | The comment at the top of Script 8.8 mistakenly refers to itself as Script 8.7. | December 22, 2004 |
10: Managing Memory | 229 | The first bit of example code should read void *x; | December 28, 2004 |
10: Managing Memory | 251 | In the first sentence of the second paragraph, there’s an extraneous ‘a’. It should read …should never return pointers to its own local variables. | December 30, 2004 |
11: Working with Strings | 277 | Line 38 of Script 11.5 should say End of for loop. | April 15, 2008 |
11: Working with Strings | 278 | Step 13 should say Complete the for loop:. | April 15, 2008 |
13: Advanced Data Types | 329 | The fifth line of code should be float gpa;. | January 26, 2008 |
13: Advanced Data Types | 330 | The comment on line 1 of Script 13.2 should say that it’s Script 13.2. | April 15, 2008 |
13: Advanced Data Types | 349 | The code in Step 20 is incorrect. It should be printf(“%s %s %0.1f\n”, new->first_name, new->last_name, new->grade);. The corresponding script is correct. | April 15, 2008 |
Appendix B: Resources | 366 | On page 366, in the third line of the last paragraph, it should refer to “comp.lang.c”. | June 15, 2005 |