preface to the third edition
preface to the first edition
1. Overview of C
1.1 History of C
1.2 Importance of C
1.3 Sample Program 1: Printing a Message
1.4 Sample Program 2: Adding Two Numbers
1.5 Sample Program 3: Interest Calculation
1.6 Sample Program 4: Use of Subroutines
1.7 Sample Program 5: Use of Math Functions
1.8 Basic Structure of C Programs
1.9 Programming Style
1.10 Executing a ‘C’ Program
1.11 Unix System
1.12 MS-DOS System
Review Questions
Programming Exercises
2. Constants, Variables, and Data Types
2.1 Introduction
2.2 Character Set
2.3 C Tokens
2.4 Keywords and Identifiers
2.5 Constants
2.6 Variables
2.7 Data Types
2.8 Declaration of Variables
2.9 Declaration of Storage Class
2.10 Assigning Values to Variables
2.11 Defining Symbolic Constants
2.12 Declaring a Variable as Constant
2.13 Declaring a Variable as Volatile
2.14 Overflow and Underflow of Data
Case Studies
Review Questions
Programming Exercises
3. Operators and Expressions
3.1 Introduction
3.2 Arithmetic Operators
3.3 Relational Operators
3.4 Logical Operators
3.5 Assignment Operators
3.6 Increment and Decrement Operators
3.7 Conditional Operator
3.8 Bitwise Operators
3.9 Spe Operators
3.10 Arithmetic Expressions
3.11 Evaluation of Expressions
3.12 Precedence of Arithmetic Operators
3.13 Some Computational Problems
3.14 Type Conversions in Expressions
3.15 Operator Precedence and Associativity
3.16 Mathematical Functions
Case Studies
Review Questions
Programming Exercises
4. Managing Input and Output Operations
4.1 Introduction
4.2 Reading a Character
4.3 Writing a Character
4.4 Formatted Input
4.5 Formatted Output
Case Studies
Review Questions
Programming Exercises
5. Decision Making and Branching
5.1 Introduction
5.2 Decision Making with if Statement
5.3 Simple if Statement
5.4 The if.....else Statement
5.5 Nesting of if....else Statements
5.6 The Else if Ladder
5.7 The Switch Statement
5.8 The ? : Operator
5.9 The Goto Statement
Case Studies
Review Questions
Programming Exercises
6. Decision Making and Looping
6.1 Introduction
6.2 The While Statement
6.3 The do Statement
6.4 The for Statement
6.5 Jumps in Loops
Case Studies
Review Questions
Programming Exercises
7. Arrays
8. Character Arrays and Strings
9. User-defined Functions
10. Structures and Unions
11. Pointers
12. File Management in C
13. Dynamic Memory Allocation and Linked Lists
14. The Preprocessor
15. Developing a C Program: Some Guidelines
Appendix Ⅰ: Bit-level Programming
Appendix Ⅱ: ASCII Values of Characters
Appendix Ⅲ: ANSI C Library Functions
Appendix Ⅳ: A Phone Book
Bibliography
Index