Book description
Programming in C draws upon the exclusivity of the bestselling Programming in ANSI and Turbo C and betters it. The approach has been made less text-heavy through the inclusion of diagrams, tables and stepwise listing of key concepts. The number of programs has been greatly increased to facilitate better programming skills.
Table of contents
- Cover
- Title Page
- Contents
- About the Author
- Dedication
- Preface
-
1. Basics and Introduction to ‘C’
- 1.1 Why to Use Computers?
- 1.2 Basics of a Computer
- 1.3 Latest Computers
- 1.4 Introduction to C
- 1.5 About ANSI C Standard
- 1.6 Machine, Assembly and High-Level Language
- 1.7 Assembler, Compiler and Interpreter
- 1.8 Structure of a C Program
- 1.9 Programming Rules
- 1.10 Executing the C Program
- 1.11 Standard Directories
- 1.12 The First C Program
- 1.13 Advantages of C
- 1.14 Header Files
- 1.15 Problem-Solving Techniques
- 1.16 Algorithm
- 1.17 Analysing Algorithm
- 1.18 Rate of Growth
- 1.19 Classification of Algorithms
- Summary
- Exercises
-
2. The C Declarations
- 2.1 Introduction
- 2.2 The C Character Set
- 2.3 Delimiters
- 2.4 Types of Tokens
- 2.5 The C Keywords
- 2.6 Identifiers
- 2.7 Constants
- 2.8 Variables
- 2.9 Rules for Defining Variables
- 2.10 Data Types
- 2.11 C Data Types
- 2.12 Integer and Float Number Representations
- 2.13 Declaring Variables
- 2.14 Initializing Variables
- 2.15 Dynamic Initialization
- 2.16 Type Modifiers
- 2.17 Type Conversion
- 2.18 Wrapping Around
- 2.19 Constant and Volatile Variables
- Summary
- Exercises
- 3. Operators and Expressions
- 4. Input and Output in C
-
5. Decision Statements
- 5.1 Introduction
- 5.2 The if Statement
- 5.3 The if–else Statement
- 5.4 Nested if–else Statement
- 5.5 if-else-if Ladder Statement
- 5.6 The break Statement
- 5.7 The continue Statement
- 5.8 The goto Statement
- 5.9 The switch Statement
- 5.10 Nested switch Case
- 5.11 The switch Case And Nested ifs
- Summary
- Exercises
- 6. Loop Control
-
7. Data Structure: Array
- 7.1 Introduction
- 7.2 Array Initialization
- 7.3 Array Terminology
- 7.4 Characteristics of an Array
- 7.5 One-Dimensional Array
- 7.6 One-Dimensional Array and Operations
- 7.7 Operations with Arrays
- 7.8 Predefined Streams
- 7.9 Two-Dimensional Array and Operations
- 7.10 Three- or Multi-Dimensional Arrays
- 7.11 The sscanf() and sprintf() Functions
- 7.12 Drawbacks of Linear Arrays
- Summary
- Exercises
- 8. Strings and Standard Functions
-
9. Pointers
- 9.1 Introduction
- 9.2 Features of Pointers
- 9.3 Pointers and Address
- 9.4 Pointer Declaration
- 9.5 Void Pointers
- 9.6 Wild Pointers
- 9.7 Constant Pointers
- 9.8 Arithmetic Operations with Pointers
- 9.9 Pointers and Arrays
- 9.10 Pointers and Two-Dimensional Arrays
- 9.11 Array of Pointers
- 9.12 Pointers to Pointers
- 9.13 Pointers and Strings
- Summary
- Exercises
-
10. Functions
- 10.1 Introduction
- 10.2 Basics of a Function
- 10.3 Function Definition
- 10.4 The return Statement
- 10.5 Types of Functions
- 10.6 Call by Value and Reference
- 10.7 Function Returning More Values
- 10.8 Function as an Argument
- 10.9 Function with Operators
- 10.10 Function and Decision Statements
- 10.11 Function and Loop Statements
- 10.12 Functions with Arrays and Pointers
- 10.13 Recursion
- 10.14 Types of Recursion
- 10.15 Rules for Recursive Function
- 10.16 Direct Recursion
- 10.17 Indirect Recursion
- 10.18 Recursion Versus Iterations
- 10.19 The Towers of Hanoi
- 10.20 Advantages and Disadvantages of Recursion
- 10.21 Efficiency of Recursion
- 10.22 Library Function
- Summary
- Exercises
- 11. Storage Class
-
12. Preprocessor Directives
- 12.1 Introduction
- 12.2 The #define Directive
- 12.3 Undefining a Macro
- 12.4 Token Pasting and Stringizing Operators
- 12.5 The #include Directive
- 12.6 Conditional Compilation
- 12.7 The #IFNDEF Directive
- 12.8 The #ERROR Directive
- 12.9 The #LINE Directive
- 12.10 The #PRAGMA inline Directive
- 12.11 The #PRAGMA saveregs
- 12.12 The #PRAGMA Directive
- 12.13 The Predefined Macros in ANSI and TURBO-C
- 12.14 Standard I/O Predefined Streams in stdio.h
- 12.15 The Predefined Marcos in ctype.h
- 12.16 Assertions
- Summary
- Exercises
-
13. Structure and Union
- 13.1 Introduction
- 13.2 Features of Structures
- 13.3 Declaration and Initialization of Structures
- 13.4 Structure within Structure
- 13.5 Array of Structures
- 13.6 Pointer to Structure
- 13.7 Structure and Functions
- 13.8 typedef
- 13.9 Bit Fields
- 13.10 Enumerated Data Type
- 13.11 Union
- 13.12 Calling Bios and Dos Services
- 13.13 Union of Structures
- Summary
- Exercises
-
14. Files
- 14.1 Introduction
- 14.2 Streams and File Types
- 14.3 Steps for File Operations
- 14.4 File I/O
- 14.5 Structures Read and Write
- 14.6 Other File Function
- 14.7 Searching Errors in Reading/Writing Files
- 14.8 Low-Level Disk I/O
- 14.9 Command Line Arguments
- 14.10 Application of Command Line Arguments
- 14.11 Environment Variables
- 14.12 I/O Redirection
- Summary
- Exercises
- 15. Graphics
- 16. Dynamic Memory Allocation and Linked List
- Appendix A
- Appendix B
- Appendix C
- Appendix D
- Appendix E
- Acknowledgements
- Copyright
Product information
- Title: Programming in C, 2nd Edition
- Author(s):
- Release date: April 2011
- Publisher(s): Pearson India
- ISBN: 9789332514584
You might also like
book
Programming in C, Third Edition
Learn the C programming language from one of the best. Stephen Kochan's Programming in C is …
book
Programming in C, 3/e, 3rd Edition
C is one of the most popular programming languages. It runs on most software platforms and …
book
C Programming
C Programming: Test Your Skills is specifically designed to be used as the supplementary resource for …
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 …