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.
1: Up from the Primordial C.
2: C of Sorrow, C of Woe.
3: C Straight.9
4: C What I/O.
5: To C or Not to C.
6: C More I/O with gets() and puts().
Part II: Run and Scream from Variables and Math.
7: A + B = C.
8: Charting Unknown Cs with Variables.
9: How to C Numbers.
10: Cook That C Variable Charred, Please.
Part III: Giving Your Programs the Ability to Run Amok.
11: C More Math and the Sacred Order of Precedence.
12: C the Mighty if Command.
13: What If C==C?
14: Iffy C Logic.
15: C You Again.
16: C the Loop, C the Loop++.
17: C You in a While Loop.
18: Do C While You Sleep.
19: Switch Case, or, From ‘C’ to Shining ‘c’.
Part IV: C Level.
20: Writing That First Function.
21: Contending with Variables in Functions.
22: Functions That Actually Funct.
23: The Stuff That Comes First.
24: The printf():.
25: Math Madness!
26: The Old Random-Number Function.
Part V: Part of Tens.
27: Ten More Things You Need to Know about the C Language.
28: Ten Tips for the Budding Programmer.
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.