Although the three terms are very vague, they are very accurate. With the semantic analysis of Chinese words, the three concepts can be easily separated.
1) constant pointer.
Constants are adjectives, pointers are nouns, and pointer-centered partial
3.2.2 Constantsand variables can be used in the program to express those that may change the amount of data corresponding to, in C + +, we use constants to express those always remain unchanged data volume. In simple terms, the values, characters,
Although the three terms are very vague, they are very accurate. With the semantic analysis of Chinese words, the three concepts can be easily separated.
1) constant pointer.
Constants are adjectives, pointers are nouns, and pointer-centered partial
[Transfer] http://www.cnblogs.com/witty/archive/2012/04/06/2435311.html
Constant pointer constantPointer constant pointing to a constant
Although the three terms are very vague, they are very accurate. With the semantic analysis of Chinese words,
3.2.2 Constantsand variables can be used in the program to express those that may change the amount of data corresponding to, in C + +, we use constants to express those always remain unchanged data volume. In simple terms, the values, characters,
Immutable types is actually very simple. They are created and their values are fixed. If you verify some parameters that are used to create an object, from the previous point of view, you know that it is in a valid (valid) state. You cannot modify
Constant Drive Type constant
You can use these constants only if your project has an explicit reference to the corresponding type library that contains the constants definitions.
Constant Value Description Unknown0 cannot determine the drive type.
What is a null pointer constant (null pointer constant )?
[6.3.2.3-3] An integer constant expression with the value 0, or such an expression cast to type void *, is called a null pointer constant.
Here we will tell you: 0, 0L, '\ 0', 3-3, 0*17
What is a null pointer constant (NULL pointer constant )?[6.3.2.3-3] an integer constant expression with the value 0, or such an expression cast to type void *, is called a null pointer constant.Here we will tell you: 0, 0l, '/0', 3-3, 0*17 (they
The constant type (immutable types) is actually very simple, but they are created and they are fixed. If you verify some of the parameters that are ready to be used to create an object, you know it is in the validation state from the previous point
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.