You invoke your structure Nodeand determine the type node_t. Then you use node_tit as if it were the name of a structure, not a type.
try it
typedef struct node {
int value;
struct node *next;
} Node;
or
typedef struct node Node;
struct node {
int value;
Node *node;
};
If you call it struct Node, then
struct Node {
int value;
struct Node *next;
};
. typedef - , , , struct. typedef ing , ,
typedef struct Node node;
Node ( , Node IS A TYPE),
node *anode;
-
struct node *anode;
, struct Node, struct Node.
, node_t ,
struct node_t *next;
, , ,
typedef struct Node node_t
- struct node_t, node_t struct , , , struct Node.
- , . struct Something, Something. , , , , Something struct.
. Node, , _t. , , , , _t . , , , . struct.