typedef struct

struct Node{
...
}Node2;
此时Node2是Node的一个变量,相当于Node Node2;

typedf struct Node{
..
}Node2
此时相当于
typedef struct Node Node2,即
用Node2表示struct Node
typdef struct {
..
}Node
此时写Node变量应是Node n1,而不能写struct Node n1;
以前一直没有区分过,发现大学真的没有学好c语言

原文地址:https://www.cnblogs.com/cloudseawang/p/600799.html