typedef struct Node{
int data;
struct Node *next;
}Node;
typedef struct{
int data;
Node *next;
}Node;
struct Node <name>
和Node <name>
有什么区别?
使用第二个会产生错误.
我对C语言还是个新手,我见过当需要在 struct 定义中定义相同的 struct 时使用的第一个 struct .它实际上是定义了相同的 struct ,还是定义了不同的 struct ?