C 语言总览:
强类型, 面向过程
简洁, 灵活: 32 个关键字 (C99 标准新增 5 个, C11 新增 7 个),9 种控制语句, 34 种运算符
数据类型丰富, 运算符丰富
结构化 (控制语句), 模块化 (函数)
灵魂, 特色: 指针
数据类型 (type)13 个: void signed unsigned short long int float double char enum struct union typedef (_Bool _Imaginary _Complex)
类型限定, 修饰 (type specifier/qualifiers)2 个: const volatile (restrict inline)
变量的存储类别 (storage class)4 个: auto static extern register
运算符 (operator)1 个: sizeof
控制 (control)12 个: goto return break continue if else switch case default do while for
数据类型 (type):
- void
- signed unsigned short long int
- float double
- char
- enum
- struct union
- typedef
- (_Bool _Imaginary _Complex)
类型限定, 修饰 (type specifier/qualifiers):
- const
- volatile
- (restrict inline)
变量的存储类别 (storage class):
- auto
- static
- extern
- register
运算符 (operator):
sizeof
控制 (control):
- goto
- return
- break continue
- if else
- switch case default
- do while
- for
C99 标准新增 5:restrict inline _Bool _Imaginary _Complex
C11 标准新增 7:_Alignas _Alignof _Atomic _Static_assert _Noreturn _Thread_local _Generic
共 32+5+7=44 个关键字
来源: http://www.bubuko.com/infodetail-2597612.html