When modifying a data declaration, the const keyword specifies that the object or variable is not modifiable. When following a member function's parameter list, the const keyword specifies that the function doesn't modify the object for which it is invoked.
const declaration ; member-function const ;
For more information on const, see the following topics:
- Constant Values
- Constant Member Functions
- const and volatile Pointers
- Type Qualifiers (C Language Reference)