Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

const (C++)

When modifying a data declaration, the const keyword specifies that the object or variable is not modifiable.

const declaration ; 
member-function const ;

When following a member function's parameter list, the const keyword specifies that the function does not modify the object for which it is invoked.

For more information on const, see the following topics:

Community Additions

ADD
Show:
© 2015 Microsoft