Often operating out statement

Constants: it can not change, and only one value

Limiting operation to limit pointer points can not be changed, not to limit the memory space by changing the content of the pointer indicated, the constraint variables may not be changed;

A limitation;

In const "*" indicates the former * p can not be changed, const * value indicates the address, i.e. the pointer is constant.

const can limit itself, may also limit the pointer, and the pointer can indirectly impart independence to change their operation, but the operation must be itself.

Published 127 original articles · won praise 10 · views 10000 +

Guess you like

Origin blog.csdn.net/chanleoo/article/details/104156415