Google News
logo
CPP - Interview Questions
Explain storage qualifiers in C++.
1. Const : This variable means that if the memory is initialised once, it should not be altered by a program.

2. Volatile : This variable means that the value in the memory location can be altered even though nothing in the program code modifies the contents.

3. Mutable : This variable means that a particular member of a structure or class can be altered even if a particular structure variable, class or class member function is constant.
Advertisement