Nested Struct - Difficulty in understanding the concept

1

I have the following structures:

typedef struct DataNode

{

    int id;

} DataNode;


typedef struct Node

{

    DataNode data;
    struct Node *Next;

} Node;

typedef struct List 

{

    int size;
    Node *head;

} List;

I made a drawing to understand these nested structures because I'm having a little trouble understanding the concept of nested structures. Are the above structures the same as the drawing below?

Thank you.

    
asked by anonymous 08.12.2018 / 01:03

0 answers