typedef struct atom {
int element;
struct atom *next;
};
vs.
typedef struct {
int element;
struct atom *next;
} atom;
http://stackoverflow.com/questions/18806392/typedef-struct-declarations
int element;
struct atom *next;
};
vs.
typedef struct {
int element;
struct atom *next;
} atom;
http://stackoverflow.com/questions/18806392/typedef-struct-declarations
本文探讨了C语言中结构体定义与typedef的应用,通过两个不同的方式声明结构体变量,并对比了它们之间的区别。
1975

被折叠的 条评论
为什么被折叠?



