If you’re like most people, the above seems like nonsense. Actually, it’s computer sense—C programming. After digesting C For Dummies, 2nd Edition, you’ll understand it. C programs are fast, concise and versatile. They let you boss your computer around for a change. So turn on your computer, get a free compiler and editor (the book tells you where), pull up a chair, and get going. You won’t have to go far (page 13) to find your first program example. You’ll do short, totally manageable, hands-on exercises to help you make sense of:
- All 32 keywords in the C language (that’s right—just 32 words)
- The functions—several dozen of them
- Terms like printf(), scanf(), gets (), and puts ()
- String variables, numeric variables, and constants
- Looping and implementation
- Floating-point values
In case those terms are almost as intimidating as the idea of programming, be reassured that C For Dummies was written by Dan Gookin, bestselling author of DOS For Dummies, the book that started the whole library. So instead of using expletives and getting headaches, you’ll be using newly acquired skills and getting occasional chuckles as you discover how to:
- Design and develop programs
- Add comments (like post-it-notes to yourself) as you go
- Link code to create executable programs
- Debug and deploy your programs
- Use lint, a common tool to examine and optimize your code
A helpful, tear-out cheat sheet is a quick reference for comparison symbols, conversion characters, mathematical doodads, C numeric data types, and more. C For Dummies takes the mystery out of programming and gets you into it quickly and painlessly.
Part I: Introduction to C Programming.
Chapter 1: Up from the Primordial C.
Chapter 2: C of Sorrow, C of Woe.
Chapter 3: C Straight.9
Chapter 4: C What I/O.
Chapter 5: To C or Not to C.
Chapter 6: C More I/O with gets() and puts().
Part II: Run and Scream from Variables and Math.
Chapter 7: A + B = C.
Chapter 8: Charting Unknown Cs with Variables.
Chapter 9: How to C Numbers.
Chapter 10: Cook That C Variable Charred, Please.
Part III: Giving Your Programs the Ability to Run Amok.
Chapter 11: C More Math and the Sacred Order of Precedence.
Chapter 12: C the Mighty if Command.
Chapter 13: What If C==C?
Chapter 14: Iffy C Logic.
Chapter 15: C You Again.
Chapter 16: C the Loop, C the Loop++.
Chapter 17: C You in a While Loop.
Chapter 18: Do C While You Sleep.
Chapter 19: Switch Case, or, From ‘C’ to Shining ‘c’.
Part IV: C Level.
Chapter 20: Writing That First Function.
Chapter 21: Contending with Variables in Functions.
Chapter 22: Functions That Actually Funct.
Chapter 23: The Stuff That Comes First.
Chapter 24: The printf() Chapter.
Chapter 25: Math Madness!
Chapter 26: The Old Random-Number Function.
Part V: Part of Tens.
Chapter 27: Ten More Things You Need to Know about the C Language.
Chapter 28: Ten Tips for the Budding Programmer.
Chapter 29: Ten Ways to Solve Your Own Programming Problems.
Appendix A: The Stuff You Need to Know before You Read All the Other Stuff in This Book.
Appendix B: ASCII Table.