What is the (C++) keyword mutable used for? Give an example.
Sigiloso
Mutable is used to specify a variable that can be changed even if it is declared as const. For e.g class MyClass { public: mutable int x; }; int main() { const MyClass o; o.x = 10; //Can change the value of x as it is mutable. };