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

What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

0 Answers  


a class that maintains a pointer to an object that is programatically accessible through the public interface is known as?

2 Answers   CTS,


Write is a binary search tree? Write an algo and tell complexity?

0 Answers   Axtria,


How to demonstrate the use of a variable?

0 Answers  


Explain how a pointer to function can be declared in C++?

0 Answers  






What is meant by const_cast?

0 Answers  


What is flush programming?

0 Answers  


What is Name Decoration?

2 Answers   Lucent,


How do you test your code?

4 Answers   Microsoft,


What will i and j equal after the code below is executed? Explain your answer.

1 Answers  


What are the uses of typedef in a program?

0 Answers  


what do you mean by volatile variable?

0 Answers  


Categories