2022年C语言复习知识点总汇 .pdf
《2022年C语言复习知识点总汇 .pdf》由会员分享,可在线阅读,更多相关《2022年C语言复习知识点总汇 .pdf(10页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、名师整理精华知识点关键字 就是已被 C 语言本身使用,不能作其它用途使用的字。例如关键字不能用作变量名、函数名等由 ANSI 标准定义的 C 语言关键字共 32 个:auto double int struct break else long switch case enum register typedef char extern return union const float short unsigned continue for signed void default goto sizeof volatile do if while static 根据关键字的作用,可以将关键字分为数据
2、类型关键字和流程控制关键字两大类。1 数据类型关键字A 基本数据类型(5 个)void:声明函数无返回值或无参数,声明无类型指针,显式丢弃运算结果char:字符型类型数据,属于整型数据的一种char ch=A;int:整型数据,通常为编译器指定的机器字长float:单精度浮点型数据,属于浮点数据的一种double:双精度浮点型数据,属于浮点数据的一种B 类型修饰关键字(4 个)名师整理精华知识点short:修饰 int,短整型数据,可省略被修饰的int。long:修饰 int,长整形数据,可省略被修饰的int。signed:修饰整型数据,有符号数据类型unsigned:修饰整型数据,无符号数据
3、类型C 复杂类型关键字(5 个)struct:结构体声明union:共用体声明enum:枚举声明typedef:声明类型别名sizeof:得到特定类型或特定类型变量的大小D 存储级别关键字(6 个)auto:指定为自动变量,由编译器自动分配及释放。通常在栈上分配static:指定为静态变量,分配在静态变量区,修饰函数时,指定函数作用域为文件内部register:指定为寄存器变量,建议编译器将变量存储到寄存器中使用,也可以修饰函数形参,建议编译器通过寄存器而不是堆栈传递参数extern:指定对应变量为外部变量,即在另外的目标文件中定义,可以认为是约定由另外文件声明的对象的一个“引用”文档编码:C
4、Q9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I
5、4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7
6、HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C
7、4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2
8、ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5
9、H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6
10、文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6名师整理精华知识点const:与 volatile合称“cv 特性”,指定变量不可被当前线程/进程改变(但有可能被系统或其他线程/进程改变)volatile:与 const 合称“
11、c v 特性”,指定变量的值有可能会被系统或其他进程/线程改变,强制编译器每次从内存中取得该变量的值2 流程控制关键字A 跳转结构(4 个)return:用在函数体中,返回特定值(或者是 void 值,即不返回值)void xxx()continue:结束当前循环,开始下一轮循环break:跳出当前循环或switch 结构for()外循环 break(1);for()内循环 break(3)break(2);文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H1
12、0I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R
13、7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T
14、5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N
15、2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10
16、H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2
17、V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码
18、:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6名师整理精华知识点 goto:无条件跳转语句B 分支结构(5 个)if:条件语句else:条件语句否定分支(与if连用)switch:开关语句(多重分支语句)case:开关语句中的分支标记default:开关语句中的“其他”分治,可选。C 循环结构(3 个)for:for 循环结构,for(1;2;3)4;的执行顺序为 1-2-4-3-2.循环,其中 2
19、 为循环条件do:do 循环结构,do 1 while(2);的执行顺序是 1-2-1.循环,2 为循环条件while:while 循环结构,while(1)2;的执行顺序是 1-2-1.循环,1 为循环条件以上循环语句,当循环条件表达式为真则继续循环,为假则跳出循环。C 源程序的结构特点:1.一个 C 语言源程序可以由一个或多个源文件组成。文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档
20、编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9
21、H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G
22、1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE
23、9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K
24、9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN
25、10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2C2V6文档编码:CQ9H10I4G1R7 HE9T5C4K9N2 ZN10H5H2
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022年C语言复习知识点总汇 2022 语言 复习 知识点 总汇
限制150内