My notes on the book The C programming language (ANSI C).
- Getting Stated
- Variables and Arithmetic Expressions
- The For Statement
- Symbolic Constants
- Character Input and Output
- Arrays
- Functions
- Arguments-Call by Value
- Cahracter Arrays
- External Varables and Scope
Chapter2: Types operators Expressions
- Variable Names
- Data Types and Sizes
- Constants
- Delcarations
- Arithmetic Operators
- Relational and Logiacal Operators
- Types Conversions
- In crement and Decrement Operator
- Bitwise Operator
- Assignement Operator and Expressions
- Conditional Expressions
- Precedence and Order of Evaluation
- Statements and Blocks
- If-Else
- Else-if
- Switch
- Loops - While and For
- Loops - Do-While
- Break and Continue
- Goto and Labels
Cahpter4: Functions And Program Strucutre
- Basics of Function
- Functions Returning Non-Integers
- External Varaibles
- Scope Rules
- Header Files
- Static Varaibles
- Register Variables
- Block Structure
- Initialization
- Recursion
- The C preprocessor
- Pointers and Addresses
- Pointers and Function Arguments
- Pointers and Arrays
- Address Arithmetic
- Character Pointers and Functions
- Pointer Array; Pointers to Pointer
- Multi-dimensional Arrays
- Initialization of Pointer Arrays
- Pointers vs. Multi-dimensional Arrays
- Command-line Arguments
- Pointer to Functions
- Complicated Declarations
- Basic of Structures
- Structures and Functions
- Arrays of structures
- Pointers to Structures
- Self-referential Structures
- Table Lookup
- Typedef
- Unions
- Bit-fields
- Standard Input and Ouput
- Formatted Output - Printf
- Variable-length Argument Lists
- Formatted Input-Scanf
- File Access
- Error Handling-Stderr and Exit
- Line Input and Output
- Miscellaneous Functions
Chapter8: The UNIX System Interface
- File Descriptors
- Low Level I/O - Read and Write
- Open, Creat, Close, Unlink
- Random Access-Lseek
- Example - An Implementation of Fopen and Gtec
- Exemple - Listing Directories
- Example - A Storage Allocator