Pearson Books home
Browse and buy books online Information for authors Browse our academic online catalogue Resources for schools and English language teaching Online courses and companion websites Online ordering for trade customers
The Reg Bookshop home > Programming in C
Business BooksBusiness
Careers & Personal Development BooksCareers & Personal Development
Computing BooksComputing
Economics BooksEconomics
Education BooksEducation
Engineering BooksEngineering
Finance and Accounting BooksFinance and Accounting
History BooksHistory
Humanities BooksHumanities
Languages BooksLanguages
Law & Criminology BooksLaw & Criminology
Leisure, Hospitality & Tourism BooksLeisure, Hospitality & Tourism
Life Skills BooksLife Skills
Marketing BooksMarketing
Mathematics BooksMathematics
Revision, York Notes & Study Skills BooksRevision, York Notes & Study Skills
Psychology BooksPsychology
Science BooksScience
Social Science BooksSocial Science
Programming in C

Programming in C


3rd Edition

Stephen Kochan

Jul 2004, Paperback, 576 pages 
ISBN13: 9780672326660
ISBN10: 0672326663
Special online offer - Save 30%
Was £28.99, Now £20.29 Buy Programming in C

Description  Back Cover  Contents  Features  Author  

Description

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!

top

Back Cover

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!

top

Contents

1. Introduction.

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.

11. Pointers.

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.

Index.

top

Features

  • Ideal for students new to object-oriented programming, C, and any other C languages—Includes introductory material that assumes no knowledge of programming.
    • Will help students master C regardless of the programming skills they already have.

  • Broad coverage of C techniques—Starts with a clear introduction to the fundamentals of C programming; then covers variables, data types, arithmetic expressions, program looping, making decisions, arrays, functions, structures, character strings, pointers, bit operations, preprocessing, I/O, and more.
    • 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.

  • By Steven Kochan, author of several renowned programming classics, including Unix Shell Programming—Authored by an expert who has helped thousands of students and professionals master programming.
    • Gives students confidence that they are receiving information that is thorough, accurate, clear, and useful—and reflects the challenges they will actually face.

  • Language summary, Standard C Library introduction, guide to gcc compilation, and more—Includes comprehensive C reference features.
    • Gives students resources they can use as working C programmers.

  • Small program examples and well-crafted exercises—Provides step-by-step, hands-on experience that begins with simple tasks and gradually builds to more complex, professional-quality techniques.
    • Helps students build their expertise incrementally as they gradually gain increasing confidence in their skills.

  • Guide to common programming mistakes—Lists and explains the most common errors C programmers make.
    • Helps students build more robust and reliable code without having to learn from mistakes the hard way, through trial and error.

top

Author

Stephen Kochan has been developing software with the C programming language for over 20 years. He is the author and coauthor of several bestselling titles on the C language, including Programming in C, Programming in ANSI C, Topics in C Programming and several Unix titles, including Exploring the Unix System, Unix Shell Programming and Unix System Security. Mr. Kochan's most recent title, Programming in Objective-C, is a tutorial on an object-oriented programming language that is based on C.

top


Product Search

People also bought



Copyright Pearson EducationLegal Notice Privacy Notice