结构和联合
结构
struct SAMPLE {
int age;
char *name;
} y[20], *z;
# 之后可以
struct SAMPLE x;
//合并
struct INIT {
int age;
short b[10];
struct SAMPLE c;
} x = {
10,
{1,2,3}
{25, 'a'}
}存储
位段(bit-field)
联合
Last updated