C Programming Essentials, 1st Edition

Book description

C Programming Essentials is specifically designed t be used at the beginner and intermediate level. The book is organized around language as the tool for design and programming and library functions. It demonstrates key techniques that make C effective and focuses on the fundamental concepts necessary for mastery. An introduction to C99 is also provided.

Table of contents

  1. Cover
  2. C Programming Essentials
  3. Copyright
  4. Contents (1/2)
  5. Contents (2/2)
  6. Preface
  7. Introduction
    1. Software
    2. Systems Software
    3. Application Software
    4. Program Development Process
    5. Algorithms
    6. Analysis of Algorithms
    7. Flowcharts
    8. Programming Language Classifications
    9. Programming Techniques
    10. Structured Programming Constructs
    11. History of C Language
    12. C Language Overview
      1. Summary
      2. New Terminology Checklist
      3. Exercises
  8. The Foundation of C
    1. Memory and Storage
    2. C Character Set
    3. C Keywords
    4. Whitespaces in C
    5. Data Types
    6. C Constants
    7. Variables
    8. A Peek at Functions
    9. Useful Identifier-Naming Conventions
    10. Type-Declaration Statements
    11. Operators (1/2)
    12. Operators (2/2)
    13. Operator Precedence
    14. Type Conversion in Expressions
    15. Type Conversion in Assignments
    16. Comments
    17. Functions Revisited
    18. Putting it Together
    19. Some Standard Library I/O Functions (1/2)
    20. Some Standard Library I/O Functions (2/2)
    21. Scope of Identifiers
    22. Storage Classes
    23. Storage Type Qualifiers
      1. Summary
      2. New Terminology Checklist
      3. Exercises
  9. Control
    1. The if Statement
    2. The switch Statement
    3. The for Statement
    4. The while Statement
    5. The do-while Statement
    6. The dreak and cntinue Statement
    7. The Infamous goto
      1. Summary
      2. New Terminology Checklist
      3. Exercises
  10. Functions and Recursion
    1. Introduction
    2. Function Arguments
    3. The return Statement Revisited
    4. Call-By-Value
    5. Stacks in Function Calls
    6. Recursion (1/2)
    7. Recursion (2/2)
    8. Towers of Hanoi—Case Study of Recursion
    9. Efficiency Considerations for Use of Functions
      1. Summary
      2. New Terminology Checklist
      3. Exercises
  11. Arrays
    1. Need for Arrays
    2. Single-Dimensional Arrays
    3. Single-Dimensional Array Initialization
    4. Multi-Dimensional Arrays
    5. Matrices
    6. Row-Major and Column-Major Order
    7. Single-Dimensional Character Arrays
    8. Initialization of Strings
    9. gets( ) and puts( )
    10. sscanf( ) and sprintf( )
    11. String Functions
    12. Two-Dimensional Character Arrays
      1. Summary
      2. New Terminology Checklist
      3. Exercises
  12. Pointers
    1. Defining a Pointer
    2. Scalars for Pointers
    3. Pointer Assignments and Expressions
    4. Pointer Comparison
    5. Passing Pointers to Functions
    6. Pointers and Arrays—Pointer Arithmetic (1/2)
    7. Pointers and Arrays—Pointer Arithmetic (2/2)
    8. Pointers and Two-Dimensional Arrays
    9. Arrays of Pointers
    10. Pointers to Pointers
    11. Pointers to Functions
    12. Command-Line Arguments
    13. Other Pointer Issues
      1. Summary
      2. New Terminology Checklist
      3. Exercises
  13. User-Defined Data Types
    1. Structures
    2. Declaring a Structure
    3. Defining a Structure Variable
    4. Initializing and Referencing Structure Members
    5. Nesting of Structures
    6. Operations on Structures
    7. Pointers to Structures
    8. Structures and Functions
    9. Arrays of Structures
    10. Self-Referential Structures
    11. Unions
    12. Enumerated Data Types
    13. Typedef
    14. Bit Fields
      1. Summary
      2. New Terminology Checklist
      3. Exercises
  14. File Access and Processing
    1. Introduction
    2. Opening and Closing a Disc File
    3. Character Input/Output
    4. Error-Handling
    5. Reading and Writing a File in Convenient Chunks
    6. File Positioning
      1. Summary
      2. New Terminology Checklist
      3. Exercises
  15. The C Preprocessor
    1. Macro Substitution
    2. File Inclusion
    3. Conditional Compilation
    4. Additional Directives
    5. Predefined Preprocessor Identifiers
    6. ANSI Standard Header files
      1. Summary
      2. New Terminology Checklist
      3. Exercises
  16. Common Errorsin C (1/3)
  17. Common Errorsin C (2/3)
  18. Common Errorsin C (3/3)
  19. More on Bitwise Operators in C
  20. Some Useful Functions from stdlib.h
  21. Creating Static Library with gcc
  22. C99-A Brief Introduction
  23. Practice Problems (1/9)
  24. Practice Problems (2/9)
  25. Practice Problems (3/9)
  26. Practice Problems (4/9)
  27. Practice Problems (5/9)
  28. Practice Problems (6/9)
  29. Practice Problems (7/9)
  30. Practice Problems (8/9)
  31. Practice Problems (9/9)
  32. Index
  33. Back Cover

Product information

  • Title: C Programming Essentials, 1st Edition
  • Author(s): Dey
  • Release date: April 2024
  • Publisher(s): Pearson India
  • ISBN: 9781282652255