APPENDIX A

image

Computer Arithmetic

I have deliberately kept discussion of number bases and arithmetic to a minimum in the chapters of this book. However, it’s important to have some understanding of this, so I’m summarizing the subject in this appendix. If you feel confident in your math skills, this review will be old hat for you. If you think the math parts are going to be tough, then this section should show you how easy it really is.

Binary Numbers

First, let’s consider exactly what you intend when you write a common, everyday decimal number, such as 324 or 911. Obviously, what you mean is “300 and 24” or “900 and 11.” These are a shorthand way ...

Get Beginning C, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.