Synopses & Reviews
C By Example makes programming easy to learn for the beginning programmer. It builds your programming skills by using clear, easy-to-understand exercises. Hands-on, real world examples show you how to write programs that flow correctly and produce accurate results. At the end of the book, you will use the concepts you have learned to build a blackjack game. Also included is an appendix that discusses where to find compilers, other C resources, where to go from here, and what kinds of careers you could go into with the knowledge she gained from the book.
About the Author
Greg Perry is a bestselling author and co-designer of the by Example series. He has written more than 50 computer books, many of which are bestsellers. He has been a programmer, trainer, and speaker for the past 20 years. Previously, Greg taught advanced programming courses at Tulsa Community College. He currently lectures at programming conferences across the country and is fluent in 9 computer languages. Among his bestselling books are Sams Teach Yourself Beginning Programming in 24 Hours, C by Example, Sams Teach Yourself Visual Basic 6 in 21 Days, and Sams Teach Yourself Windows 98 in 24 Hours.
Table of Contents
Introduction.
I. WELCOME TO C. 1. What C Is All About.
2. Analyzing C Programs.
3. Variables and Constants.
4. Introduction to Arrays.
5. Preprocessor Directives.
6. Input and Output.
II. C OPERATORS. 7. Operators and Precedence.
8. Relational and Logical Operators.
9. Remaining C Operators.
III. CONTROLLING YOUR PROGRAM'S EXECUTION. 10. The while Loop.
11. The for Loop.
12. Controlling Flow.
IV. VARIABLE SCOPE AND STRUCTURING CODE. 13. Introduction to C Functions.
14. Variable Scope and Structuring Code.
15. Passing Values Between Functions.
16. Returning Function Values.
V. STANDARD INPUT, OUTPUT, AND INTRINSIC FUNCTIONS. 17. Device and Character 1/0.
18. String and Numeric Functions.
VI. BUILDING BLOCKS. 19. Working with Arrays.
20. Pointer Storage.
21. Using Pointers.
VII. ADVANCED C. 22. Introduction to Structures.
23. Arrays of Structures.
24. Simple C File Processing.
25. Putting It All Together.