link them together by means of pointers
Posted rsapaper
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了link them together by means of pointers相关的知识,希望对你有一定的参考价值。
Computer Science An Overview _J. Glenn Brookshear _11th Edition
An alternative to storing a heterogeneous array in a block of contiguous memory cells is to store each component in a separate location and then link them together by means of pointers. More precisely, if the array contains three components, then we find a place in memory to store three pointers, each of which points to one of the components (Figure 8.7b). If these pointers are stored in a block starting at address x, then the first component can be found by following the pointer stored at location x, the second component can be found by following the pointer at location x 1, and so forth.
This arrangement is especially useful in those cases in which the size of the array’s components is dynamic. For instance, by using the pointer system the size of the first component can be increased merely by finding an area in memory to hold the larger component and then adjusting the appropriate pointer to point to the new location. But if the array were stored in a contiguous block, the entire array would have to be altered.
Implementing Data Structures 数据结构的实现
Storing Arrays Heterogeneous Arrays 异构数组的存储
以上是关于link them together by means of pointers的主要内容,如果未能解决你的问题,请参考以下文章
Distributed Systems: When you should build them, and how to scale. A step-by-step guide.
Some untracked working tree files would be overwritten by checkout. Please move or remove them befor
Git Pull Failed :Your local changes would be overwritten by merge. Commit, stash or revert them(示例代码
The following paths are ignored by one of your .gitignore Use -f if you really want to add them.