Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Constant data can be modified by pointers.
Constant data can be modified by pointers.
Const pointer is a pointer to an address of constant type.

For example, int * const a;;

Modified examples: int b, c; Constant a = & ampb;;

It means that A is a const pointer, which points to the memory of variable B. But because it is a const pointer, A cannot be used to point to other variables, such as A = &;; c; No! You can modify the value pointing to memory, for example: * a = 20BTW const pointer must give me the initial value when it is declared.