Hi! Im trying to learn about lists in C but I cannot get it , here is part of an example taken from a book:
Code:
struct tlist{
long DNI;
char Name[25];
int Age;
struct tlist *pnext; //Pointer to next element.
};
void main(void)
{
struct tlist *list = NULL; //Empty.
struct tlist *p; //Auxiliar pointer.
Well I understand what the first struct does, but the 2 lines in main function cannot understand what exactly does, why are both pointers? these pointers are the pointers that are inside of the struct? I need some help from you guys, maybe a book or a web where its well explained.