C语言的关键字
C语言的32个关键字:
auto const static extern volatile register signed unsigned
void char short int long float double struct union enum
if else switch case default do while for break continue
return goto typedef sizeof
void char short int long float double struct union enum
if else switch case default do while for break continue
return goto typedef sizeof
类型关键字10个
void
空类型
char 字符型 1byte,与系统无关
short 短整型 与系统有关,32位系统上为2byte
int 整型 与系统有关,32位系统上为4byte
long 长整型 与系统有关,32位系统上为4byte
int 整型 与系统有关,32位系统上为4byte
long 长整型 与系统有关,32位系统上为4byte
float 单精度浮点型 与系统有关,32位系统上为4byte
double 双精度浮点型 与系统有关,32位系统上为8byte
struct 结构体
uion 共用体
enum 枚举
修饰关键字8个
auto
自动(局部)变量(默认修饰)
const
只读变量
static 静态变量
extern 外部变量
volatile 易变变量
register 寄存器变量
signed 有符号类型变量(默认修饰)
unsigned 无符号类型变量
static 静态变量
extern 外部变量
volatile 易变变量
register 寄存器变量
signed 有符号类型变量(默认修饰)
unsigned 无符号类型变量
结构控制关键字12个
if else if分支语句
switch case default switch分支语句
do while while循环语句
for break continue for循环语句
goto 跳转语句
return 函数返回语句
特殊关键字2个
typedef 定义新的数据类型
sizeof 计算数据类型大小