C language pointer

Source: Internet
Author: User
Tags abstract language

Pointers are a "Language Mechanism" of C language. The difference is that, if a pointer is used normally, it is a common tool. Instead, it only modifies the real parameter by passing the address to the function, array positioning is essentially a pointer, and if the C language pointer is used well, the C language will be another language. What language would it be like? It would be an advanced pointer c lanuage, an enhanced pointer C language, and a pointer would make c a design language just like a c # advanced language, instead of just an intermediate language with pointers as the underlying mechanism in the general sense. Because pointers are the only "abstract language mechanism" in C language, the "abstract language mechanism" is proposed here, which can be used for design. For example, C ++ has "OO ", "model" and so on (many books explain that C ++ does not explain this, because in the Language Mechanism of C ++, only OO and model are their own, pointers are almost the only abstract language mechanism in C ). what are the usage of a pointer when it is used for design ?? This is the highest level of C learning. First, pointers are pointers in assembly languages for underlying implementation and design, for example, if mov eax dowrd ptr [an address] mov edx dowrd ptr [an address] is structured like this, it indicates that the pointer is a memory address pointer ,, however, when pointers develop to C pointers and C ++ references, a higher level of logic is formed.

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.