TAILIEUCHUNG - The C Programming Language full

The authors present the complete guide to ANSI standard C language programming. Written by the developers of C, this new version helps readers keep up with the finalized ANSI standard for C while showing how to take advantage of C's rich set of operators, economy of expression, improved control flow, and data structures. The 2/E has been completely rewritten with additional examples and problem sets to clarify the implementation of difficult language constructs. | 1 SECOND EDITION PROGRAMMING LANGUAGE BRIAN w KERNIGH AN DENNIS M. RITCHIE FHF i FCF FALL a J i WV L S R 3 2 Preface 6 Preface to the first edition 8 Chapter 1 - A Tutorial Introduction 9 Getting Started 9 Variables and Arithmetic Expressions 11 The for statement 15 Symbolic Constants 17 Character Input and Output 17 File Copying 18 Character Counting 19 Line Counting 20 Word Counting 21 Arrays 23 Functions 25 Arguments - Call by Value 28 Character Arrays 29 External Variables and Scope 31 Chapter 2 - Types Operators and Expressions 35 Variable Names 35 Data Types and Sizes 35 Constants 36 Declarations 38 Arithmetic Operators 39 Relational and Logical Operators 39 Type Conversions 40 Increment and Decrement Operators 43 Bitwise Operators 45 Assignment Operators and Expressions 46 Conditional Expressions 47 Precedence and Order of Evaluation 48 Chapter 3 - Control Flow 50 Statements and Blocks 50 If-Else 50 Else-If 51 Switch 52 Loops - While and For 53 Loops - Do-While 56 Break and Continue 57 Goto and labels 57 Chapter 4 - Functions and Program Structure 59 Basics of Functions 59 Functions Returning Non-integers 61 External Variables 63 Scope Rules 68 Header Files 69 Static Variables 70 Register Variables 71 Block Structure 71 Initialization 72 Recursion 73 The C Preprocessor 74 File Inclusion 75 Macro Substitution 75 3 Conditional Inclusion 77 Chapter 5 - Pointers and Arrays 78 Pointers and Addresses 78 Pointers and Function Arguments 79 Pointers and Arrays 81 Address Arithmetic 84 Character Pointers and Functions 87 Pointer Arrays Pointers to Pointers 89 Multi-dimensional Arrays 92 Initialization of Pointer Arrays 93 Pointers vs. Multi-dimensional Arrays 94 Command-line Arguments 95 Pointers to Functions 98

TỪ KHÓA LIÊN QUAN