Hi, I want to define a pointer, but I am very confused about head pointer, if i define a struct, like
typedef struct name{
int i;
struct node *next;
// should I define a head here?
// like: struct node *head;
}node;
// I'm not sure should I define the head outside or inside, like
typedef node ptr;
ptr head;
can you give me some example for how should I use the head pointer? thank you