Sail E0 Webinar
Question

What is the importance of mutable keyword?


Options:
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: Option A

Mutable keyword allows assigning values to a data member belonging to a class defined as 

"Const" or constant.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers