Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is "mutable" keyword?

Answer Posted / shakti singh khinchi

Mutable keyword is used to modify a data member of an object
which has declared as constant. for example:

class XYZ
{
public:
int i;
mutable int cc;
public:
XYZ();
};

int main()
{
const XYZ obj;
obj.cc = 100; // modify obj object's member "cc" which has
been declared as mutable.
}

Is This Answer Correct ?    16 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the disadvantage of using a macro?

1051


Is ca high or low level language?

1014


Do vectors start at 0?

943


What is a v-table?

1101


Name the debugging methods that are used to solve problems?

1037


Does dev c++ support c++ 11?

963


write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;

1824


What is array in c++ pdf?

1090


Out of fgets() and gets() which function is safe to use and why?

1132


What is auto used for in c++?

1011


What is abstract class in c++?

985


Can I learn c++ without learning c?

942


How does code-bloating occur in c++?

1134


what kind of projects are suitable for c and c++

992


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

1947