typedef struct Node{
int data;
struct Node *next;
}node, *pNode;
等同于 typedef struct Node node;
typedef struct Node *pNode;
第一个是为struct Node 创建一个别名;
第二个是用typedef 将 pNode 定义为一个类型,该类型是指向结构体struct Node的指针类型。
typedef struct Node{
int data;
struct Node *next;
}node, *pNode;
等同于 typedef struct Node node;
typedef struct Node *pNode;
第一个是为struct Node 创建一个别名;
第二个是用typedef 将 pNode 定义为一个类型,该类型是指向结构体struct Node的指针类型。