Traditional Culture Encyclopedia - Traditional festivals - Is the top pointer top in the linked list the same as the traditional pointer? Do they all store addresses?
Is the top pointer top in the linked list the same as the traditional pointer? Do they all store addresses?
Essentially the same, but there are some differences:
1. The stack top pointer TOP points to the top of the stack (the tail of the linear table), and the linked list pointer points to the head (or head node) of the linked list.
2. The stack is generally not set, and the top generally points to the top element of the stack; Linked list structure is divided into two types: leading node and non-leading node, so linked list pointer may point to header element or leading node.
3. Nodes have the same composition, but different meanings. From the table, the two are opposite. Look at the picture below:
- Previous article:What is the most entrepreneurial genus, which genus of celebrities more
- Next article:What about Suzhou Dabao Transportation Co., Ltd.?
- Related articles
- What links does the financial system consist of?
- What's so hacky about the 11 audi a62.4 engine
- When playing songs on computer, how to play them continuously without having to finish a song and play the next one manually, or is there any good playback software?
- The three basic principles of TCM diagnostics are
- riddle ......
- Directors of previous Spring Festival Galas
- Designer Decorates Villa with Oriental Charm
- What is the new Henan merchant?
- How to draw a handsome Chinese dragon boat
- Zhou: The muzzle blast is over. The clown turned out to be himself.