图书介绍
标准C程序设计 第5版 影印版 英文PDF|Epub|txt|kindle电子书版本下载
![标准C程序设计 第5版 影印版 英文](https://www.shukui.net/cover/6/30708548.jpg)
- E Balagurusamy著 著
- 出版社: 北京:清华大学出版社
- ISBN:7302264194
- 出版时间:2011
- 标注页数:549页
- 文件大小:26MB
- 文件页数:560页
- 主题词:
PDF下载
下载说明
标准C程序设计 第5版 影印版 英文PDF格式电子书版下载
下载的文件为RAR压缩包。需要使用解压软件进行解压得到PDF格式图书。建议使用BT下载工具Free Download Manager进行下载,简称FDM(免费,没有广告,支持多平台)。本站资源全部打包为BT种子。所以需要使用专业的BT下载软件进行下载。如BitComet qBittorrent uTorrent等BT下载工具。迅雷目前由于本站不是热门资源。不推荐使用!后期资源热门了。安装了迅雷也可以迅雷进行下载!
(文件页数 要大于 标注页数,上中下等多册电子书除外)
注意:本站所有压缩包均有解压码: 点击下载压缩包解压工具
图书目录
1 Overview of C1
1.1 History of C1
1.2 Importance of C3
1.3 Sample Program 1:Printing a Message3
1.4 Sample Program 2:Adding Two Numbers6
1.5 Sample Program 3:Interest Calculation8
1.6 Sample Program 4:Use of Subroutines10
1.7 Sample Program 5:Use of Math Functions11
1.8 Basic Structure of C Programs12
1.9 Programming Style14
1.10 Executing a'C' Program14
1.11 Unix System16
1.12 Ms-Dos System18
Review Questions19
Programming Exercises20
2 Constants,Variables,and Data Types23
2.1 Introduction23
2.2 Character Set23
2.3 C Tokens25
2.4 Keywords and Identifiers25
2.5 Constants26
2.6 Variables30
2.7 Data Types31
2.8 Declaration of Variables34
2.9 Declaration of Storage Class37
2.10 Assigning Values to Variables38
2.11 Defining Symbolic Constants44
2.12 Declaring a Variable as Constant45
2.13 Declaring a Variable as Volatile45
2.14 Overflow and Underflow of Data46
Review Questions49
Programming Exercises51
3 Operators and Expressions52
3.1 Introduction52
3.2 Arithmetic Operators52
3.3 Relational Operators55
3.4 Logical Operators57
3.5 Assignment Operators57
3.6 Increment and Decrement Operators59
3.7 Conditional Operator61
3.8 Bitwise Operators61
3.9 Special Operators61
3.10 Arithmetic Expressions63
3.11 Evaluation of Expressions64
3.12 Precedence of Arithmetic Operators65
3.13 Some Computational Problems67
3.14 Type Conversions in Expressions68
3.15 Operator Precedence and Associativity72
3.16 Mathematical Functions74
Review Questions78
Programming Exercises81
4 Managing Input and Output Operations84
4.1 Introduction84
4.2 Reading a Character85
4.3 Writing a Character88
4.4 Formatted Input89
4.5 Formatted Output98
Review Questions110
Programming Exercises112
5 Decision Making and Branching114
5.1 Introduction114
5.2 Decision Making with IF Statement114
5.3 Simple IF Statement115
5.4 The IF.....ELSE Statement119
5.5 Nesting of IF....ELSE Statements122
5.6 The ELSE IF Ladder126
5.7 The Switch Statement129
5.8 The ?: Operator133
5.9 The GOTO Statement136
Review Questions144
Programming Exercises148
6 Decision Making and Looping152
6.1 Introduction152
6.2 The WHILE Statement154
6.3 The DO Statement157
6.4 The FOR Statement159
6.5 Jumps in LOOPS166
6.6 Concise Test Expressions174
Review Questions182
Programming Exercises186
7 Arrays190
7.1 Introduction190
7.2 One-dimensional Arrays192
7.3 Declaration of One-dimensional Arrays193
7.4 Initialization of One-dimensional Arrays195
7.5 Two-dimensional Arrays199
7.6 Initializing Two-dimensional Arrays204
7.7 Multi-dimensional Arrays208
7.8 Dynamic Arrays209
7.9 More about Arrays209
Review Questions223
Programming Exercises225
8 Character Arrays and Strings229
8.1 Introduction229
8.2 Declaring and Initializing String Variables230
8.3 Reading Strings from Terminal231
8.4 Writing Strings to Screen236
8.5 Arithmetic Operations on Characters241
8.6 Putting Strings Together242
8.7 Comparison of Two Strings244
8.8 String-handling Functions244
8.9 Table of Strings250
8.10 Other Features of Strings252
Review Questions257
Programming Exercises259
9 User-defined Functions262
9.1 Introduction262
9.2 Need for User-defined Functions262
9.3 A Multi-function Program263
9.4 Elements of User-defined Functions266
9.5 Definition of Functions267
9.6 Return Values and their Types269
9.7 Function Calls270
9.8 Function Declaration272
9.9 Category of Functions274
9.10 No Arguments and no Return Values274
9.11 Arguments but no Return Values277
9.12 Arguments with Return Values280
9.13 No Arguments but Returns a Value284
9.14 Functions that Return Multiple Values285
9.15 Nesting of Functions286
9.16 Recursion288
9.17 Passing Arrays to Functions289
9.18 Passing Strings to Functions294
9.19 The Scope,Visibility and Lifetime of Variables295
9.20 Multifile Programs305
Review Questions311
Programming Exercises315
10 Structures and Unions317
10.1 Introduction317
10.2 Defining a Structure317
10.3 Declaring Structure Variables319
10.4 Accessing Structure Members321
10.5 Structure Initialization322
10.6 Copying and Comparing Structure Variables324
10.7 Operations on Individual Members326
10.8 Arrays of Structures327
10.9 Arrays within Structures329
10.10 Structures within Structures331
10.11 Structures and Functions333
10.12 Unions335
10.13 Size of Structures337
10.14 Bit Fields337
Review Questions344
Programming Exercises348
11 Pointers351
11.1 Introduction351
11.2 Understanding Pointers351
11.3 Accessing the Address of a Variable354
11.4 Declaring Pointer Variables355
11.5 Initialization of Pointer Variables356
11.6 Accessing a Variable through its Pointer358
11.7 Chain of Pointers360
11.8 Pointer Expressions361
11.9 Pointer Increments and Scale Factor362
11.10 Pointers and Arrays364
11.11 Pointers and Character Strings367
11.12 Array of Pointers369
11.13 Pointers as Function Arguments370
11.14 Functions Returning Pointers373
11.15 Pointers to Functions373
11.16 Pointers and Structures376
11.17 Troubles with Pointers379
Review Questions385
Programming Exercises388
12 File Management in C389
12.1 Introduction389
12.2 Defining and Opening a File390
12.3 Closing a File391
12.4 Input/Output Operations on Files392
12.5 Error Handling During I/O Operations398
12.6 Random Access to Files400
12.7 Command Line Arguments405
Review Questions408
Programming Exercises409
13 Dynamic Memory Allocation and Linked Lists411
13.1 Introduction411
13.2 Dynamic Memory Allocation411
13.3 Allocating a Block of Memory:MALLOC413
13.4 Allocating Multiple Blocks of Memory:CALLOC415
13.5 Releasing the Used Space:Free415
13.6 Altering the Size of a Block:REALLOC416
13.7 Concepts of Linked Lists417
13.8 Advantages of Linked Lists420
13.9 Types of Linked Lists421
13.10 Pointers Revisited422
13.11 Creating a Linked List424
13.12 Inserting an Item428
13.13 Deleting an Item431
13.14 Application of Linked Lists433
Review Questions440
Programming Exercises442
14 The Preprocessor444
14.1 Introduction444
14.2 Macro Substitution445
14.3 File Inclusion449
14.4 Compiler Control Directives450
14.5 ANSI Additions453
Review Questions456
Programming Exercises457
15 Developing a C Program:Some Guidelines458
15.1 Introduction458
15.2 Program Design458
15.3 Program Coding460
15.4 Common Programming Errors462
15.5 Program Testing and Debugging469
15.6 Program Efficiency471
Review Questions472
Appendix Ⅰ:Bit-level Programming474
Appendix Ⅱ:ASCII Values of Characters480
Appendix Ⅲ:ANSI C Library Functions482
Appendix Ⅳ:Projects486
Appendix Ⅴ:C99 Features537
Bibliography545
Index547