Answer Posted / som shekhar
Sorry the keyword is not volatile ,its mutable.
if the member varible of the class is declared as mutable
then you can change its value in a function which is
declared as constant.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How can I learn dev c++ programming?
What's the best free c++ profiler for windows?
Describe protected access specifiers?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
What is the main purpose of c++?
Are there any special rules about inlining?
If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?
What is data abstraction? How is it different from data encapsulation?
Can you explicitly call a destructor on a local variable?
Explain terminate() function?
What are literals in C++?
What do you mean by friend class & friend function in c++?
Why is "using namespace std;" considered bad practice?
Explain the scope of resolution operator.
Can circle be called an ellipse?