结构变量

Struct variable

当我们有:

struct node {
    char...
    int....
    struct node *....
}

typedef struct node Node;

然后我们有一个这样的函数:

int function(Node f){...}

这是什么f

fNode 类型的输入参数。类型 Node 是类型 struct node 的同义词。

在声明中 typedef struct node Node; 您使用 typedef.

struct node 的别名指定为 Node

所以在function()

的定义中

int function(Node f){...}

f 只不过是 struct node 类型的变量。

您还可以在此处查看 typedef 声明和含义 http://en.cppreference.com/w/c/language/typedef