Check out example codes for "c list". It will help you in understanding the concepts better.

Code Example 1

// Node of the list
typedef struct node {
    int val;
    struct node * next;
} node_t;

Code Example 2

typedef struct node{
    int value; //this is the value the node stores
    struct node *next; //this is the node the current node points to. this is how the nodes link

node *createNode(int val){
    node *newNode = malloc(sizeof(node));
    newNode->value = val;
    newNode->next = NULL;
    return newNode;

Learn ReactJs, React Native from