What is the name of the struct below — node_t or node?
Why is there any difference?
typedef struct node_t
{
int data;
struct node_t *right, *left;
} node;
What is the name of the struct below — node_t or node?
Why is there any difference?
typedef struct node_t
{
int data;
struct node_t *right, *left;
} node;
You are defining a name (node) for the struct node_t.
It allows you to create the structure using node myStruct instead of struct node_t myStruct.