本文档持续更新(
18/03/26
),欢迎加入
QQ
群
: 693596710
一起沟通技术、分享心得
目录
前言 .................................................................................................................................................. 1
一 基本概念 .................................................................................................................................... 2
1-1 声明法则 ........................................................................................................................... 2
1-2 逗号运算符和表达式 ....................................................................................................... 3
二 数据和语句 ................................................................................................................................ 3
2-1 基本数据类型 ................................................................................................................... 3
1)整型家族 ..................................................................................................................... 4
2)浮点类型 ..................................................................................................................... 4
3)指针 ............................................................................................................................. 5
2-2 char 的默认符号 ............................................................................................................. 5
第 3 章 指针 .................................................................................................................................... 6
1 指针常量 ................................................................................................................................ 6
2 指向数组的指针 ................................................................................................................... 6
3 NULL 指针 ........................................................................................................................... 7
4 void *指针 ........................................................................................................................... 7
第 4 章 函数 .................................................................................................................................... 8
4-1 函数基础 ........................................................................................................................... 8
4-2 函数指针 ........................................................................................................................... 8
第 5 章 数组 .................................................................................................................................... 9
5-1 数组基础 ........................................................................................................................... 9
5-2 数组名 ............................................................................................................................... 9
5-3 数组初始化 ....................................................................................................................... 9
5-4 多维数组 ......................................................................................................................... 10
第 6 章 字符、字符串................................................................................................................... 10
6-1 字符串基础 ..................................................................................................................... 10
6-2 字符串常量(string literal) ................................................................................................ 10
6-3 ’\0’ 字符和 NUL 字符 ................................................................................................... 11
第 7 章 结构体 .............................................................................................................................. 11
7-1 结构体基础 ..................................................................................................................... 11
7-2 结构声明 .......................................................................................................................... 11
7-3 结构对齐 ......................................................................................................................... 12
第 8 章 链表 .................................................................................................................................. 15
8-1 链表基础 ......................................................................................................................... 15
x-x 非本地跳转 ...................................................................................................................... 15
前言
本文是在 <<c 和指针>> 一书的基础上进行增删查改.