typedef定义类型
typedef为已有类型定义新的别名。使用typedef 已定义类型 新类型
。
- 限制:
- 只能定义新类型名,不能定义变量。
-
新类型名必须基于已有类型。
-
示例:
typedef float REAL;
typedef struct student { int i; int *p; } REC;
8.66MB
文件大小:
评论区