C Programming

Book description

C Programming: Test Your Skills is specifically designed to be used as the supplementary resource for learning C Programming. It is ideal for self practice or test preparation and hones one's problem solving abilities through varieties of exercises.

Table of contents

  1. Cover
  2. Title Page
  3. Contents
  4. About the Authors
  5. Dedication
  6. Preface
  7. 1. Computer Fundamentals and Brief Information on C
    1. 1.1. Components of a Computer
    2. 1.2. Latest Computers
    3. 1.3. Algorithm
    4. 1.4. Sequence, Selection and Iteration
    5. 1.5. Flowcharts
    6. 1.6. An Overview of Compilers and Interpreters
    7. 1.7. Structure of a C Program
    8. 1.8. C Programming Rules
    9. 1.9. Executing the Program
    10. 1.10. An Example of a C Program
    11. Exercises
    12. Answers
  8. 2. The C Declarations
    1. 2.1. Introduction
    2. 2.2. The C Character Set
    3. 2.3. Delimiters
    4. 2.4. Types of Tokens
    5. 2.5. The C Keywords
    6. 2.6. Identifiers
    7. 2.7. Constants
      1. 2.7.1. Numeric Constants
      2. 2.7.2. Character Constants
    8. 2.8. Variables
    9. 2.9. Rules for Defining Variables
    10. 2.10. C Data Types
      1. 2.10.1. Basic Data Type
      2. 2.10.2. The Void Data Type
    11. 2.11. Initializing Variables
    12. 2.12. Dynamic Initialization
    13. 2.13. Type Modifiers
    14. 2.14. Type Conversion
    15. 2.15. Wrapping Around
    16. 2.16. Constant and Volatile Variables
      1. 2.16.1. Constant Variable
      2. 2.16.2. Volatile Variable
    17. Exercises
    18. Answers
  9. 3. Operators and Expressions
    1. 3.1. Operators
    2. 3.2. Arithmetic Operators
    3. 3.3. Relational Operators
    4. 3.4. Logical Operators
    5. 3.5. Increment and Decrement Operators (Unary Operators)
    6. 3.6. Assignment Operators and Expressions
    7. 3.7. Comma and Conditional Operator
    8. 3.8. Bitwise Operators
    9. Exercises
    10. Answers
  10. 4. Decision Control
    1. 4.1. Control Structures
    2. 4.2. if Statement
    3. 4.3. if-else Statement
    4. 4.4. Nested if-else Statement
    5. 4.5. switch Statement
      1. 4.5.1. switch() execution
    6. Exercises
    7. Answers
  11. 5. Loop Control Statements
    1. 5.1. What is a Program Loop?
    2. 5.2. for Loop
    3. 5.3. Nested for Loops
    4. 5.4. while Loop
    5. 5.5. do-while
    6. 5.6. do-while Statement with while Loop
    7. 5.7. break Statement
    8. 5.8. continue Statement
    9. 5.9. goto Statement
    10. Exercises
    11. Answers
  12. 6. Arrays
    1. 6.1. Definition of an Array
    2. 6.2. Declaration of One-Dimensional Array
    3. 6.3. One-Dimensional Array Initialization
    4. 6.4. Access to One-Dimensional Array Elements
    5. 6.5. Printing One-Dimensional Array Elements
    6. 6.6. Initialization of Two-Dimensional Array
    7. 6.7. Initialization of Three-Dimensional Arrays
    8. 6.8. Arrays and Pointers
      1. 6.8.1. Array and Function
    9. Exercises
    10. Answers
  13. 7. String Operations and Standard Functions
    1. 7.1. Definition of String
    2. 7.2. Declaration and Initialization of a String
    3. 7.3. Display of Strings with Different Formats
    4. 7.4. String Standard Functions
    5. Exercises
    6. Answers
  14. 8. Pointers
    1. 8.1. Pointer Definition
    2. 8.2. Features of Pointers
    3. 8.3. Pointers and Addresses
    4. 8.4. Pointer Declaration
    5. 8.5. Arithmetic Operations with Pointers
    6. 8.6. Pointers and Arrays
    7. 8.7. Pointers to Pointers
    8. 8.8. Dynamic Memory Allocation
    9. 8.9. Memory Allocation Functions
    10. Exercises
    11. Answers
  15. 9. Functions
    1. 9.1. Introduction
    2. 9.2. Definition of Function
      1. 9.2.1. Why use functions?
      2. 9.2.2. How function works?
    3. 9.3. Function Definition Syntax
    4. 9.4. The Return Statement
    5. 9.5. Types of Functions
      1. 9.5.1. Without arguments and return values
      2. 9.5.2. With arguments but without return values
      3. 9.5.3. Function with passing arguments and Return values
      4. 9.5.4. Function without passing arguments, but with return values
    6. 9.6. Call by Value and Reference
    7. 9.7. Function Returning More Values
    8. 9.8. Function as an Argument
    9. 9.9. Function with Operators
    10. 9.10. Function and Decision Statements
    11. 9.11. Function and Loop Statements
    12. 9.12. Functions with Arrays and Pointers
      1. 9.12.1. Initialization of array using function
      2. 9.12.2. Passing array elements to function
    13. 9.13. Recursion
    14. 9.14. Library Functions (Table 9.9)
    15. Exercises
    16. Answers
  16. 10. Storage Class
    1. 10.1. Introduction
    2. 10.2. Automatic Variables
    3. 10.3. External Variables
    4. 10.4. Static Variables
    5. 10.5. Register Variables
    6. Exercises
    7. Answers
  17. 11. Preprocessor Directives
    1. 11.1. Introduction
    2. 11.2. #define Directive
    3. 11.3. Undefining a Macro
    4. 11.4. Token Pasting and Stringizing Operators
    5. 11.5. #include Directive
    6. 11.6. Conditional Compilation
    7. 11.7. #ifndef Directive
    8. 11.8. #error Directive
    9. 11.9. #line Directive
    10. 11.10. inline Directive
    11. 11.11. #pragma Saveregs
    12. 11.12. The Pre-Defined Macros in ANSI and Turbo C
      1. 11.12.1. ANSI C Pre-Defined Macros
      2. 11.12.2. Turbo C Pre-Defined Macros
    13. 11.13. The Pre-Defined Marcos in ctype.h
    14. Exercises
    15. Answers
  18. 12. Structure and Union
    1. 12.1. Basics of Structure
    2. 12.2. Features of Structures
    3. 12.3. Definition and Declaration of Structure
    4. 12.4. Structure within a Structure
    5. 12.5. Array of Structures
    6. 12.6. Pointer to Structure
    7. 12.7. Structure and Functions
    8. 12.8. typedef
    9. 12.9. Bit Fields
    10. 12.10. Enumerated Data Type
    11. 12.11. union
    12. 12.12. Calling BIOS and DOS Services
    13. 12.13. Union of Structures
    14. Exercises
    15. Answers
  19. 13. Files
    1. 13.1. Introduction of a File
      1. 13.1.1. Definition of a file
    2. 13.2. Streams and File Types
      1. 13.2.1. File Types
    3. 13.3. Steps for File Operations
      1. 13.3.1. Opening of file
      2. 13.3.2. Text modes
      3. 13.3.3. Binary modes
      4. 13.3.4. Reading a file
      5. 13.3.5. Closing a file
    4. 13.4. File I/O
    5. 13.5. Other File Functions
      1. 13.5.1. The fseek() function
    6. 13.6. Searching Errors in Reading/Writing Files
    7. 13.7. Low-Level Disk I/O
    8. 13.8. Command Line Arguments
    9. Exercises
    10. Answers
  20. 14. Graphics
    1. 14.1. Introduction
    2. 14.2. Initialization of Graphics
    3. 14.3. Few Graphics Functions
    4. 14.4. Programs Using Library Functions
    5. 14.5. Working with Text
    6. 14.6. Filling Patterns with Different Colors and Styles
    7. 14.7. Mouse Programming
    8. 14.8. Drawing Non-Common Figures
    9. 14.9. Summary
    10. Exercises
    11. Answers
  21. Appendix A
  22. Appendix B
  23. Appendix C
  24. Acknowledgements
  25. Copyright

Product information

  • Title: C Programming
  • Author(s):
  • Release date: April 2010
  • Publisher(s): Pearson India
  • ISBN: 9788131770931