欢迎来到EDA中国!
当前位置:网站首页 >资源共享 > 嵌入式

C语言深度解剖

  • 2M
  • pdf
  •  
  •  
  • 下载
  • 2013-06-20
  • 软件简介

一章关键字...................................................................................................................................91.

1,最宽恒大量的关键字----auto..........................................................................................111

2,最快的关键字----register...............................................................................................111

.2.1,皇帝身边的小太监----寄存器.............................................................................111.

2.2,使用register修饰符的注意点.............................................................................111

.3,最名不符实的关键字----static........................................................................................121.

3.1,修饰变量...............................................................................................................121

.3.2,修饰函数...............................................................................................................131.

4,基本数据类型----short、int、long、char、float、double...........................................131

.4.1,数据类型与“模子”...............................................................................................141

4.2,变量的命名规则...................................................................................................141

.5,最冤枉的关键字----sizeof...............................................................................................181.

5.1,常年被人误认为函数...........................................................................................181.

5.2,sizeof(int)*p表示什么意思?........................................................................181.

4,signed、unsigned关键字................................................................................................191.

6,if、else组合....................................................................................................................201

.6.1,bool变量与“零值”进行比较...............................................................................201.

6.2,float变量与“零值”进行比较.................................................................................211.

6.3,指针变量与“零值”进行比较...............................................................................211

.6.4,else到底与哪个if配对呢?...............................................................................221.

6.5,if语句后面的分号...............................................................................................231

.6.6,使用if语句的其他注意事项..............................................................................241.

7,switch、case组合...........................................................................................................241.

7.1,不要拿青龙偃月刀去削苹果..............................................................................241

.7.2,case关键字后面的值有什么要求吗?..............................................................251.

7.3,case语句的排列顺序...........................................................................................251

.7.4,使用case语句的其他注意事项..........................................................................271.

8,do、while、for关键字...................................................................................................281.

8.1,break与continue的区别.....................................................................................281.

8.2,循环语句的注意点...............................................................................................291.

9,goto关键字......................................................................................................................301.

10,void关键字....................................................................................................................311.

10.1,voida?............................................................................................................311.

10,return关键字.................................................................................................................341.

11,const关键字也许该被替换为readolny.......................................................................341.

11.2,节省空间,避免不必要的内存分配,同时提高效率....................................351.

12,最易变的关键字----volatile..........................................................................................361.

13,最会带帽子的关键字----extern....................................................................................371.

14,struct关键字..................................................................................................................381.

14.1,空结构体多大?.................................................................................................381.

14.2,柔性数组.............................................................................................................391.

4.3,struct与class的区别.........................................................................................401.

15,union关键字..................................................................................................................40


-----------------------------------------------------------------------------------------------------------

关键字 : 解剖 深度 C 语言 
获取帮助