【发布时间】:2021-04-01 23:02:43
【问题描述】:
选项 1:
typedef struct s{
int x;
double y;
char z;
}mystruct;
选项 2:
typedef struct {
int x;
double y;
char z;
}mystruct;
这两个选项有什么区别?
【问题讨论】:
-
this 有帮助吗?
-
@costaparas 我找不到我所要求的具体细微差别的答案,但我找到了另一个有用的信息
-
选项 2 将 mystruct 定义为匿名结构。选项 1 将 mystruct 定义为
struct s。