c数据结构 -- 链表的理解

链表是结构体变量与结构体变量链接在一起,怎么链接在一起?通过指针

#include <stdio.h>
struct Node{
    int data;
    struct Node* next;
};
int main(void)
{
    struct Node node1 = {
        1,NULL
    };
    struct Node node2 = {
        3,NULL
    };
    struct Node node3 = {
        3,NULL
    };
       node1.next = &node2;
    node2.next = &node3;
    return 0;
}
原文地址:https://www.cnblogs.com/cl94/p/12236203.html