How Computers Really Work

Updates

This page lists updates to the book since its release.

Page 175

In the Python function to calculate the area of a circle, the following line of code:

def area_of_circle(radius)

Should instead read:

def area_of_circle(radius):

That is, the line should end with a colon. This will be corrected in future printings of the book.

Page 191

In Project #19: Factorial in C, the following line of code:

printf('%d\n', answer);

Should instead read:

printf("%d\n", answer);

That is, the printf string should be enclosed in double quotation marks (") rather than single quotation marks ('). The online version of the code is already correct, and this error was corrected in the second printing of the book.