C Language Pointer usage detailed (a) pointer

Source: Internet
Author: User

Description of the complex type: Pointers: 1. Type of pointer: Remove the pointer name in the statement that declares the pointer, and the rest is the type of the pointer                              2. The type that the pointer points to: Remove the declarator * and pointer names of the pointer in the statement that declares the pointer, leaving the type that the pointer points to.    

In the arithmetic operation of the pointer, the pointer to the type is critical.

3. The value of the pointer-or the memory area or address that the pointer points tothe value of the pointer: the value stored by the pointer itself, as an address in the compilerThe memory area that the pointer points to: the memory at which the value of the pointer is represented, and the length of sizeof (the type the pointer points to)My three waking hands: The pointer type, the type to which the pointer is pointing, and where the pointer points 4. The memory area occupied by the pointer itselfthe memory that the pointer itself occupies, sizeof (the type of the pointer)To make an analogy: I point (Love) Crestron husband, my position is in Harbin, Crestron husband's address is in the Royal Park, my type is to eat soil, Crestron husband is multi-gold, my address-Harbin is the Crestron husband-the park

Advocating knowledge rigorous, welcome correction!!!

C Language Pointer usage detailed (a) pointer

Related Article

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.