Note points for chained storage in data structures (linear vs. Stacks)

Source: Internet
Author: User

When passing data to complex type data, you can directly pass the first address of the business data to the bottom of the business layer, and the underlying layer can be directly offset by four bytes to concatenate the elements of the business tier.

The underlying can directly use the memory space allocated by the business layer,

When passing data as the underlying type of data, the above approach is not available, and another idea is to create a new node structure at the bottom, a pointer field, a data field, and pass data from the business layer to the underlying data field (usually the void * type).

Note points for chained storage in data structures (linear vs. Stacks)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.