In pset 5s walkthrough, the node struct is defined like this:
typedef struct node
{
int value;
struct node* next
} node;
And when we then use the cursor -> next statement, to jump to the next node. How does the struct exactly know to jump to the next, what connects them?
I understand that the cursor points to the "current node" and then -> next will go to the next node in the linked list.
When defining the node struct, is next a predefined keyword?
As far as my understanding of pointers, we are creating a pointer to the struct node and calling it "next", but I don't see how the nodes are connected.
Thanks