How to avoid changing constant values?

Answers were Sorted based on User's Feedback



How to avoid changing constant values?..

Answer / jack

using const keyword with the variable.....

Is This Answer Correct ?    4 Yes 1 No

How to avoid changing constant values?..

Answer / subrat pattnaik

by "mutable" keyword use

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C++ General Interview Questions

Explain the ISA and HASA class relationships. How would you implement each in a class design?

3 Answers  


Which is best ide for c++?

0 Answers  


What is a block in c++?

0 Answers  


What are shallow and deep copy?

0 Answers  


What is pair in c++?

0 Answers  


What is public, protected, private in c++?

0 Answers  


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

0 Answers  


What is the use of static functions?

10 Answers   Symphony,


What is atoi?

0 Answers  


write a c++ program that gives output 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 using looping statement

2 Answers  


Explain the volatile and mutable keywords.

0 Answers  


When should overload new operator on a global basis or a class basis?

0 Answers  


Categories