typedef volatile unsigned short WORD;
时间: 2023-12-09 13:37:00 浏览: 36
`typedef volatile unsigned short WORD;`是一个C语言中的类型定义,它定义了一个名为`WORD`的新类型,它是一个无符号的16位短整型变量,并且使用了`volatile`关键字,表示该类型的变量是易变的,可能会被意外地修改。在C语言中,`typedef`关键字用于定义新的类型名,可以将一个已有的数据类型定义为一个新的类型名,方便程序员使用。
相关问题
c语言unsigned short占几个字节_第三章 C语言关键字
在大多数机器上,unsigned short占用2个字节,即16位。C语言中的关键字是指具有特殊含义的单词,不能用作变量名、函数名或其他标识符。C语言中共有32个关键字,它们分别是:
auto、break、case、char、const、continue、default、do、double、else、enum、extern、float、for、goto、if、int、long、register、return、short、signed、sizeof、static、struct、switch、typedef、union、unsigned、void、volatile、while。
合法的c语言关键字有哪些
C语言的关键字共有32个,包括auto、break、case、char、const、continue、default、do、double、else、enum、extern、float、for、goto、if、int、long、register、return、short、signed、sizeof、static、struct、switch、typedef、union、unsigned、void、volatile、while。其中,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、static、while是C语言的关键字。这些关键字根据其作用可以分为数据类型关键字、控制语句关键字、存储类型关键字和其它关键字四类。