数据结构之链表节点的表示

#include<stdio.h>
#include<malloc.h>
//节点的表示
typedef struct Node
{
    int data;
    struct Node *pNext;
}NODE,*PNODE;//NODE相当于struct Node,PNODE相当于struct Node *
 
int main(void)
{
    PNODE p = (PNODE)malloc(sizeof(struct Node));
    p->pNext;//p所指向的结构体变量中的pNext本身
    free(p);//删除p指向的节点所占的内存,不是删除p本身所占的内存
    return 0;
}
原文地址:https://www.cnblogs.com/baoyingying/p/11664384.html