Home » C++ Programming » Modifier Types » Question
  1. What is the importance of mutable keyword?
    1. It will not allow the data member to change within a const member function
    2. It will copy the values of the variable
    3. It allows the data member to change within a const member function
    4. All of above
    5. None of these
Correct Option: C

Mutable keyword allows assigning values to a data member belonging to a class defined as “Const” or constant.



Your comments will be displayed only after manual approval.