What is the importance of mutable keyword?
A. It allows the data member to change within a const member function.
B. It will not allow the data member to change within a const member function.
C. It will copy the values of the variable.
D. None of the mentioned
Answer:A
What is the importance of mutable keyword?
A. It allows the data member to change within a const member function. B. It will not allow the data member to change within a const member function. C. It will copy the values of the variable. D. None of the mentioned
Explanation:Mutable keyword allows assigning values to a data member belonging to a class defined as “Const” or constant.