- Programming in C, 3/E
- ISBN-10: 0672326663 • ISBN-13: 9780672326660
- ©2005 • Sams Publishing • Paper, 576 pp
Published 07/08/2004 • Instock
Appropriate for all introductory-to-intermediate courses on C programming, including courses covering C programming for games and small-device platforms.
Programming in C, Third Edition is a thoroughly revised and updated edition of Steven Kochans classic C programming tutorial: a book that has helped thousands of students master C over the past twenty years. This edition fully reflects the latest C standard and contains current source code. It has been crafted to help students master C regardless of the platform they intend to use or the applications they intend to create—including small-device and gaming applications, where Cs elegance and speed make it especially valuable. Kochan begins with the fundamentals, then covers every facet of C programming: variables, data types, arithmetic expressions, program looping, making decisions, arrays, functions, structures, character strings, pointers, operations on bits, the preprocessors, I/O, and more. Coverage also includes chapters on working with larger programs; debugging programs; and the fundamentals of object-oriented programming. Appendices include a complete language summary, an introduction to the Standard C Library, coverage of compiling and running programs using gcc, common programming mistakes, and more.
Will help students master C regardless of the programming skills they already have.
Prepares students for whatever challenges they are likely to encounter while programming with C, while providing a firm foundation in the key concepts and techniques theyll constantly rely upon.
Gives students confidence that they are receiving information that is thorough, accurate, clear, and useful—and reflects the challenges they will actually face.
Gives students resources they can use as working C programmers.
Helps students build their expertise incrementally as they gradually gain increasing confidence in their skills.
Helps students build more robust and reliable code without having to learn from mistakes the hard way, through trial and error.
2. Some Fundamentals.
Programming. Higher-Level Languages. Operating Systems. Compiling Programs. Integrated Development Environments. Language Interpreters.
3. Compiling and Running Your First Program.
Compiling Your Program. Running Your Program. Understanding Your First Program. Displaying the Values of Variables. Comments. Exercises.
4. Variables, Data Types, and Arithmetic Expressions.
Working with Variables. Understanding Data Types and Constants. Working with Arithmetic Expressions. Combining Operations with Assignment: The Assignment Operators. Types Complex and Imaginary. Exercises.
5. Program Looping.
The for Statement. The while Statement. The do Statement. Exercises.
6. Making Decisions.
The if Statement. The switch Statement. Boolean Variables. The Conditional Operator. Exercises.
7. Working with Arrays.
Defining an Array. Initializing Arrays. Character Arrays. Multidimensional Arrays. Variable-Length Arrays. Exercises.
8. Working with Functions.
Defining a Function. Arguments and Local Variables. Returning Function Results. Functions Calling Functions Calling... Top-Down Programming. Functions and Arrays. Global Variables. Automatic and Static Variables. Recursive Functions. Exercises.
9. Working with Structures.
A Structure for Storing the Date. Functions and Structures. Initializing Structures. Arrays of Structures. Structures Containing Structures. Structures Containing Arrays. Structure Variants.Exercises.
10. Character Strings.
Arrays of Characters. Variable-Length Character Strings. Escape Characters. More on Constant Strings. Character Strings, Structures, and Arrays. Character Operations. Exercises.
Defining a Pointer Variable. Using Pointers in Expressions. Working with Pointers and Structures. The Keyword const and Pointers. Pointers and Functions. Pointers and Arrays. Operations on Pointers. Pointers to Functions. Pointers and Memory Addresses. Exercises.
12. Operations on Bits.
Bit Operators. Bit Fields. Exercises.
13. The Preprocessor.
The #define Statement. The #include Statement. Conditional Compilation. Exercises.
14. More on Data Types.
Enumerated Data Types. The typedef Statement. Data Type Conversions. Exercises.
15. Working with Larger Programs.
Dividing Your Program into Multiple Files. Communication Between Modules. Other Utilities for Working with Larger. Programs.
16. Input and Output Operations in C.
Character I/O: getchar and putchar. Formatted I/O: printf and scanf. Input and Output Operations with Files. Special Functions for Working with Files. Exercises.
17. Miscellaneous and Advanced Features.
Miscellaneous Language Statements. Working with Unions. The Comma Operator. Type Qualifiers. Command-Line Arguments. Dynamic Memory Allocation.
18. Debugging Programs.
Debugging with the Preprocessor. Debugging Programs with gdb.
19. Object-Oriented Programming.
What Is an Object Anyway? Instances and Methods. Writing a C Program to Work with Fractions. Defining an Objective-C Class to Work with Fractions. Defining a C++ Class to Work with Fractions. Defining a C# Class to Work with Fractions.
Appendix A - C Language Summary.
Digraphs and Identifiers. Comments. Constants. Data Types and Declarations. Expressions. Storage Classes and Scope. Functions. Statements. The Preprocessor.
Appendix B: The Standard C Library.
Standard Header Files. String Functions. Memory Functions. Character Functions. I/O Functions. In-Memory Format Conversion Functions. String-to-Number Conversion. Dynamic Memory Allocation Functions. Math Functions. General Utility Functions.
Appendix C: Compiling Programs with gcc.
General Command Format. Command-Line Options.
Appendix D: Common Programming Mistakes.
Appendix E: Resources.
Answers to Exercises, Errata, etc. The C Programming Language. C Compilers and Integrated Development Environments. Miscellaneous.
Learn C programming from one of the best. Stephen Kochan's Programming in C is thorough with easy-to-follow instructions that are sure to benefit beginning programmers. In its third edition, the style in this book remains true to the simple, instructional style of previous editions. It provides you with updated and relevant examples of how C programming can be used with small, fast programs, similar to the programming used by large game developers such as Nintendo. If you want a one-stop-source for C programming, this book is it!
Give your students choices! PearsonChoices products are designed to give your students more value and flexibility by letting them choose from a variety of text and media formats to best match their learning style and their budget.
Pearson offers special pricing when you choose to package your text with other student resources. If you're interested in creating a cost-saving package for your students, see the Packages tab.
Pearson Higher Education offers special pricing when you choose to package your text with other student resources. If you're interested in creating a cost-saving package for your students contact your Pearson Higher Education representative.
Nobody is smarter than you when it comes to reaching your students. You know how to convey knowledge in a way that is relevant and relatable to your class. It's the reason you always get the best out of them. And when it comes to planning your curriculum, you know which course materials express the information in the way that’s most consistent with your teaching. That’s why we give you the option to personalize your course material using just the Pearson content you select. Take only the most applicable parts of your favorite materials and combine them in any order you want. You can even integrate your own writing if you wish. It's fast, it's easy and fewer course materials help minimize costs for your students.
For more information: www.pearsonlearningsolutions.com/higher-education
Explore our course catalogs and see how you can customize your own textbooks.
Our library is vast, and it's all at your fingertips. Create a custom book by selecting content from any of our course-specific collections. Here, you'll find chapters from Pearson titles, carefully-selected third-party content with copyright clearance, and pedagogy. Once you're satisfied with your customized book, you will have a print-on-demand book that can be purchased by students in the same way they purchase other course material.
Browse through our list of published titles. These books are examples of original manuscripts created in partnership with local Custom Field Editors. They have been authored by instructors at specific campuses, but are readily available for adoption.
Pearson Learning Solutions will partner with you to select or create eBooks, custom eBooks, online learning courses, resource materials, teaching content, media resources and media supplements. Simply share your course goals with our world-class experts, and they will offer you a selection of outstanding, up-to-the-minute solutions.
Pearson Learning Solutions offers a broad range of courses and custom solutions for web-enhanced, blended and online learning. Our course content is developed by a team of respected subject matter experts and experienced eLearning instructional designers. All course content is designed around specific learning objectives.
For more information: www.pearsonlearningsolutions.com/higher-education/customizable-online-courseware