BookWiki:

Relative Links: C Programming Language

The C Programming Language

这是一本programmer写给programmer看的书

图书信息

surface.jpg http://book.douban.com/subject/1236999/

Contents

attachment:book.png

Chapter 1 - A Tutorial Introduction

Chapter 2 - Types, Operators and Expressions

2.1 Variable Names

2.2 Data Types and Sizes

c语言的类型(斜体是C99的类型)

int/long/double

整数

浮点数

类型

字⻓

范围

有效数字

scanf

printf

float

32

±(1.20E38

7

%f

%f, %e

double

64

±(2.2E308

15

%lf

%f, %e

字符

逻辑类型

#include "stdbool.h" 之后就可以使用bool和true、false了

2.3 Constants

int/float/char/enum

2.6 Relational and Logical Operators

优先级: ! > && > ||

2.7 Type Conversions

automatic conversions: convert a "narrower" operand into a "wider" one without losing information

2.11 Conditional Expressions

2.12 Precedence and Order of Evaluation

关系运算符的优先级

Chapter 3 - Control Flow

3.4 Switch

3.5 Loops - While and For

The for statement

for (expr1; expr2; expr3 )
        statement

is equivalent to

expr 1;
while (expr2) {
        statement
        expr3;
}

3.7 Break and Continue

3.8 Goto and labels

Chapter 4 - Functions and Program Structure

Chapter 5 - Pointers and Arrays

Chapter 6 - Structures

Chapter 7 - Input and Output

T7.1_Basic_Printf_Conversions.png

T7.2_Basic_Scanf_Conversions.png

Chapter 8 - The UNIX System Interface

The book

http://www.iups.org/media/meeting_minutes/C.pdf


CategoryProgramming

BookWiki: The_C_Programming_Language (last edited 2009-09-28 23:41:40 by twotwo)