search

Home  >  Q&A  >  body text

c++ - Questions about linear tables

typedef struct Node{
ElemType e;
struct Node *next;
} Node, *LinkList;

Status GetElem(LinkList L,int i,ElemType *e) {
LinkList p;
p = L->next;
}
Why does p here point to the Lth A node, this L is Node *L, then the content it points to should also be a node. Why is the next of this node L the first node in the linked list where this node is located?

过去多啦不再A梦过去多啦不再A梦2713 days ago686

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-06-10 09:50:34

    Please pay attention to distinguish the head node and the first node. L is the head node, p is the first node, refer to Baidu Encyclopedia: http://baike.baidu.com/item/%...

    reply
    0
  • Cancelreply