I'm really struggling to know what's going on with this struct
in C++
:
typedef struct nod{
int nr;
nod* next;
}NOD;
I know what a struct
is and what purposes have, but I don't realize why "nod" and "NOD" is duplicate .And what's going on with the nod* inside the structure ?
This code is from chained lists.
if somebody can help me, I would appreciate it !!