Study Notes (10): C ++ Language Basics video tutorial -3.10 pointers and often quoted Chang

Learning immediately: https://edu.csdn.net/course/play/474/5137?utm_source=blogtoedu

Often pointer:

Class name * const variable name

Often the parameter as a function pointer, the pointer value of the object is not allowed to change a variable in the execution of the function

 

Pointing a pointer variable often variable definitions:

const variable name class name *

Often only variable points to a pointer to point to constant argument

Often pointing object is the object pointer can point to, but can not change the value of the object is (as is often the object that is defined to point to a default value can not be changed referent

 

Often defined point object pointer variable:

const variable name class name * / const variable names class names

 

Often an object pointer pointing to the most commonly used form of function parameters

 

For the often quoted:

If you do not want to modify the value of the argument in the function, the parameter may be declared as often quoted

Published 17 original articles · won praise 0 · Views 130

Guess you like

Origin blog.csdn.net/cangersuifeng/article/details/104858929