D
dspfun
I've come a across a program that declares the following data
structure.
typedef struct node {
struct node *next;
} node;
It looks like a recursive data structure but I'm having trouble
understanding the use of it? Can somebody explain this?
How much memory will be allocated by the compiler when the structure is
instantiated?
The following structure makes use of the previous structure.
typedef struct queue {
node *head, *tail;
} queue;
Best regards!
structure.
typedef struct node {
struct node *next;
} node;
It looks like a recursive data structure but I'm having trouble
understanding the use of it? Can somebody explain this?
How much memory will be allocated by the compiler when the structure is
instantiated?
The following structure makes use of the previous structure.
typedef struct queue {
node *head, *tail;
} queue;
Best regards!