In Lecture 4, David uses this to declare a node struct:
typedef struct node
{
int n;
struct node *next;
}
node;
However, in shorts after Lecture 4, Doug explicitly tells us that when declaring such linked structs we have to use temp names like this:
typedef struct node_temp
{
int n;
struct node_temp *next;
}
node;
Are they both right and am I missing something?