What is the importance of mutable keyword?
Answer / Alpna Bharti
The mutable keyword in C++ allows a member function to modify a base class member that has been declared as const. Without the mutable keyword, any attempt to modify such a member would result in a compile error.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the c++ programming language used for?
How can you tell what shell you are running on unix system?
How to access a variable of the structure?
What is c++ mutable?
What are the techniques you use for debugging?
Which one is better- macro or function?
Where do I find the current c or c++ standard documents?
What is constructor and destructor in c++?
Can you write a function similar to printf()?
structure that describe a hotel with name, address,rooms and number of rooms
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
What are the c++ access specifiers?