Book description
The book demonstrates key techniques that make C effective and focuses on fundamental concepts for mastery. An introduction to C99 is also provided.
Table of contents
- Copyright
- Preface
-
1. Introduction
- 1.1. Software
- 1.2. Systems Software
- 1.3. Application Software
- 1.4. Program Development Process
- 1.5. Algorithms
- 1.6. Analysis of Algorithms
- 1.7. Flowcharts
- 1.8. Programming Language Classifications
- 1.9. Programming Techniques
- 1.10. Structured Programming Constructs
- 1.11. History of C Language
- 1.12. C Language Overview
- Summary
- New Terminology Checklist
- Exercises
-
2. The Foundation of C
- 2.1. Memory and Storage
- 2.2. C Character Set
- 2.3. C Keywords
- 2.4. Whitespaces in C
- 2.5. Data Types
- 2.6. C Constants
- 2.7. Variables
- 2.8. A Peek at Functions
- 2.9. Useful Identifier-Naming Conventions
- 2.10. Type-Declaration Statements
- 2.11. Operators
- 2.12. Operator Precedence
- 2.13. Type Conversion in Expressions
- 2.14. Type Conversion in Assignments
- 2.15. Type Casting
- 2.16. Comments
- 2.17. Functions Revisited
- 2.18. Putting It Together (First C Program)
- 2.19. Some Standard Library I/O Functions
- 2.20. Scope of Identifiers
- 2.21. Storage Classes
- 2.22. Storage Type Qualifiers
- Summary
- New Terminology Checklist
- Exercises
- 3. Control
- 4. Functions and Recursion
-
5. Arrays
- 5.1. Need for Arrays
- 5.2. Single-Dimensional Arrays
- 5.3. Single-Dimensional Array Initialization
- 5.4. Multi-Dimensional Arrays
- 5.5. Matrices
- 5.6. Row-Major and Column-Major Order
- 5.7. Single-Dimensional Character Arrays (Strings)
- 5.8. Initialization of Strings
- 5.9. gets( ) and puts( )
- 5.10. sscanf( ) and sprintf( )
- 5.11. String Functions
- 5.12. Two-Dimensional Character Arrays
- Summary
- New Terminology Checklist
- Exercises
-
6. Pointers
- 6.1. Defining a Pointer
- 6.2. Scalars for Pointers
- 6.3. Pointer Assignments and Expressions
- 6.4. Pointer Comparison
- 6.5. Passing Pointers to Functions
- 6.6. Pointers and Arrays—Pointer Arithmetic
- 6.7. Pointers and Two-Dimensional Arrays
- 6.8. Arrays of Pointers
- 6.9. Pointers to Pointers
- 6.10. Pointers to Functions
- 6.11. Command-Line Arguments
- 6.12. Other Pointer Issues
- Summary
- New Terminology Checklist
- Exercises
-
7. User-Defined Data Types
- 7.1. Structures
- 7.2. Declaring a Structure
- 7.3. Defining a Structure Variable
- 7.4. Initializing and Referencing Structure Members
- 7.5. Nesting of Structures
- 7.6. Operations on Structures
- 7.7. Pointers to Structures
- 7.8. Structures and Functions
- 7.9. Arrays of Structures
- 7.10. Self-Referential Structures
- 7.11. Unions
- 7.12. Enumerated Data Types
- 7.13. Typedef
- 7.14. Bit Fields
- Summary
- New Terminology Checklist
- Exercises
- 8. File Access and Processing
- 9. The C Preprocessor
-
A. Common Errors in C
- A.1. Types of Errors
-
A.2. Common Instances of Errors
- Remember to start and end comments correctly
- The assignment operator ‘=’ is often mistaken for the test operator ‘==’
- Errors with missing parenthesis
- Use of operators may have side effects
- Non-terminated comment
- Accidental assignment/accidental booleans
- Switch statement
- Scanf errors
- Size of arrays
- Integer division
- Loop errors
- Prototype
- Remember brackets with pointers and increment/decrement operators
- Errors caused by using a pointer as argument to a function
- Non-initialized pointers
- String- and character-constant confusions
- Comparing strings with relational operators
- Strings without NULL terminator
- Not leaving room for the NULL terminator
- Input/Output errors
- EOF
- Leaving characters in the input buffer
- Returning local array
- B. More on Bitwise Operators in C
- C. Some Useful Functions from stdlib.h
- D. Creating Static Library with gcc
- E. C99—A Brief Introduction
- F. Practice Problems
Product information
- Title: C Programming Essentials
- Author(s):
- Release date: April 2010
- Publisher(s): Pearson India
- ISBN: 9788131728895
You might also like
book
C Programming
C Programming: Test Your Skills is specifically designed to be used as the supplementary resource for …
book
Practical C Programming
A comprehensive guide with practical instructions for learning data structures, low-level programming, high-performance computing, networking and …
book
Programming in C, Third Edition
Learn the C programming language from one of the best. Stephen Kochan's Programming in C is …
book
C Programming Absolute Beginner’s Guide, Third Edition
Updated for C11 Write powerful C programs… without becoming a technical expert! This book is the …